mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
fix errors
This commit is contained in:
parent
8054d2f3a6
commit
83355516c3
1 changed files with 2 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ func (self *Pss) Start(srv *p2p.Server) error {
|
|||
go func() {
|
||||
for {
|
||||
tickC := time.Tick(defaultCleanInterval)
|
||||
cacheTickC := time.Tick(cacheTTL)
|
||||
cacheTickC := time.Tick(self.cacheTTL)
|
||||
select {
|
||||
case <-cacheTickC:
|
||||
self.cleanFwdCache()
|
||||
|
|
@ -765,7 +765,7 @@ func (self *Pss) cleanFwdCache() {
|
|||
defer self.fwdCacheMu.Unlock()
|
||||
for k, v := range self.fwdCache {
|
||||
if v.expiresAt.Before(time.Now()) {
|
||||
delete(self.fwdCache[k])
|
||||
delete(self.fwdCache, k)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue