Skip to content

Commit

Permalink
fix(resolver): query log creation cooldown not being fixed
Browse files Browse the repository at this point in the history
Default is backoff, but documentation implies a fixed delay.
  • Loading branch information
ThinkChaos committed Dec 9, 2022
1 parent 164e398 commit 4f01d01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resolver/query_logging_resolver.go
Expand Up @@ -56,6 +56,7 @@ func NewQueryLoggingResolver(cfg config.QueryLogConfig) ChainedResolver {
return err
},
retry.Attempts(uint(cfg.CreationAttempts)),
retry.DelayType(retry.FixedDelay),
retry.Delay(time.Duration(cfg.CreationCooldown)),
retry.OnRetry(func(n uint, err error) {
logger(queryLoggingResolverPrefix).Warnf("Error occurred on query writer creation, "+
Expand Down

0 comments on commit 4f01d01

Please sign in to comment.