Skip to content

Commit

Permalink
fix: discard blocklist return val
Browse files Browse the repository at this point in the history
  • Loading branch information
metacertain committed Jun 4, 2021
1 parent 0d675cb commit 1419053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/accounting/accounting.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ func (a *Accounting) Connect(peer swarm.Address) {
timeNow := a.timeNow().Unix()
if timeNow < accountingPeer.reconnectAllowTimestamp {
disconnectFor := accountingPeer.reconnectAllowTimestamp - timeNow
a.p2p.Blocklist(peer, time.Duration(disconnectFor)*time.Second)
_ = a.p2p.Blocklist(peer, time.Duration(disconnectFor)*time.Second)
}
}
}
Expand Down

0 comments on commit 1419053

Please sign in to comment.