lint
This commit is contained in:
parent
c2b7ffbae5
commit
30559a0d78
@ -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"),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user