Browse Source

lint fix

pull/4548/head
Callum Michael Waters 5 years ago
parent
commit
eeb0b0d112
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      p2p/pex/known_address.go

+ 1
- 4
p2p/pex/known_address.go View File

@ -60,10 +60,7 @@ func (ka *knownAddress) ban() {
}
func (ka *knownAddress) isBanned(banTime time.Duration) bool {
if ka.LastBanTime.Add(banTime).Before(time.Now()) {
return false
}
return true
return ka.LastBanTime.Add(banTime).Before(time.Now())
}
func (ka *knownAddress) addBucketRef(bucketIdx int) int {


Loading…
Cancel
Save