Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Oct 11, 2024
1 parent 935fabc commit a876912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/apiinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func newChainNodeRPCV1(ctx context.Context, addr string, requestHeader http.Head

const initialBackoff = time.Second
const maxRetryAttempts = 5
const maxBehinhBestHealthy = 1
const maxBehindBestHealthy = 1

var errorsToRetry = []error{&jsonrpc.RPCConnectionError{}, &jsonrpc.ErrClient{}}

Expand Down Expand Up @@ -168,7 +168,7 @@ func FullNodeProxy[T api.Chain](ins []T, outstr *api.ChainStruct) {

if bestKnownTipset != nil {
// if we're behind the best tipset, mark as unhealthy
unhealthyProviders[i] = ch.Height() < bestKnownTipset.Height()-maxBehinhBestHealthy
unhealthyProviders[i] = ch.Height() < bestKnownTipset.Height()-maxBehindBestHealthy
if unhealthyProviders[i] {
log.Errorw("rpc check chain head call failed", "fail_type", "behind_best", "provider", i, "height", ch.Height(), "best_height", bestKnownTipset.Height())
}
Expand Down

0 comments on commit a876912

Please sign in to comment.