This commit is contained in:
Cory Schwartz 2022-04-20 20:46:32 -07:00
parent c2b7ffbae5
commit 30559a0d78

View File

@ -95,7 +95,6 @@ type Node struct {
rateLimiter *rate.Limiter rateLimiter *rate.Limiter
rateLimitTimeout time.Duration rateLimitTimeout time.Duration
errLookback error errLookback error
errRateLimit error
} }
var ( var (
@ -121,7 +120,6 @@ func NewNode(api TargetAPI, lookbackCap time.Duration, stateWaitLookbackLimit ab
rateLimiter: rate.NewLimiter(limit, stateRateLimitTokens), rateLimiter: rate.NewLimiter(limit, stateRateLimitTokens),
rateLimitTimeout: rateLimitTimeout, rateLimitTimeout: rateLimitTimeout,
errLookback: fmt.Errorf("lookbacks of more than %s are disallowed", lookbackCap), errLookback: fmt.Errorf("lookbacks of more than %s are disallowed", lookbackCap),
errRateLimit: fmt.Errorf("this respones has been rate limited"),
} }
} }