Duration order consistency when multiplying number by time unit
This commit is contained in:
parent
9ef4f47ba0
commit
bd75eddc8e
6 changed files with 6 additions and 6 deletions
|
@ -139,7 +139,7 @@ func TestProvideWithWatch(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
timeout = time.After(time.Second * 1)
|
||||
timeout = time.After(1 * time.Second)
|
||||
var numUpdates, numServices, numRouters, numTLSConfs int
|
||||
for {
|
||||
select {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue