1
0
Fork 0

Duration order consistency when multiplying number by time unit

This commit is contained in:
Maxim Fominykh 2019-11-27 01:38:03 +05:00 committed by Traefiker Bot
parent 9ef4f47ba0
commit bd75eddc8e
6 changed files with 6 additions and 6 deletions

View file

@ -151,7 +151,7 @@ func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.
}
func (p *Provider) intervalPoll(ctx context.Context, client rancher.Client, updateConfiguration func(string)) {
ticker := time.NewTicker(time.Second * time.Duration(p.RefreshSeconds))
ticker := time.NewTicker(time.Duration(p.RefreshSeconds) * time.Second)
defer ticker.Stop()
var version string