Commit 329ad4e4 authored by Felipe Andrade's avatar Felipe Andrade

lint

parent 88bca84e
...@@ -57,7 +57,7 @@ type backendState struct { ...@@ -57,7 +57,7 @@ type backendState struct {
bannedUntil time.Time bannedUntil time.Time
} }
func (bs backendState) IsBanned() bool { func (bs *backendState) IsBanned() bool {
return time.Now().Before(bs.bannedUntil) return time.Now().Before(bs.bannedUntil)
} }
...@@ -394,7 +394,7 @@ func (cp *ConsensusPoller) UpdateBackendGroupConsensus(ctx context.Context) { ...@@ -394,7 +394,7 @@ func (cp *ConsensusPoller) UpdateBackendGroupConsensus(ctx context.Context) {
if proposedBlock > 0 { if proposedBlock > 0 {
for !hasConsensus { for !hasConsensus {
allAgreed := true allAgreed := true
for be, _ := range candidates { for be := range candidates {
actualBlockNumber, actualBlockHash, err := cp.fetchBlock(ctx, be, proposedBlock.String()) actualBlockNumber, actualBlockHash, err := cp.fetchBlock(ctx, be, proposedBlock.String())
if err != nil { if err != nil {
log.Warn("error updating backend", "name", be.Name, "err", err) log.Warn("error updating backend", "name", be.Name, "err", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment