mirror of https://github.com/0xERR0R/blocky.git
fix(resolver): query log creation cooldown not being fixed
Default is backoff, but documentation implies a fixed delay.
This commit is contained in:
parent
164e398d04
commit
4f01d017df
|
@ -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, "+
|
||||
|
|
Loading…
Reference in New Issue