Skip to content

Commit

Permalink
Code review rework
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Jul 5, 2024
1 parent fc2d182 commit b4d9e03
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions node/pkg/watchers/evm/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -903,10 +903,8 @@ var blockNotFoundErrors = map[string]struct{}{

// canRetryGetBlockTime returns true if the error returned by getBlockTime warrants doing a retry.
func canRetryGetBlockTime(err error) bool {
if _, exists := blockNotFoundErrors[err.Error()]; exists {
return true
}
return false
_, exists := blockNotFoundErrors[err.Error()]
return exists
}

// waitForBlockTime is a go routine that repeatedly attempts to read the block time for a single log event. It is used when the initial attempt to read
Expand Down

0 comments on commit b4d9e03

Please sign in to comment.