mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Use time.after instead of time.tick to not leak (#3751)
This commit is contained in:
parent
dd751cccf6
commit
f85941e60c
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ func (s *Service) updateJitterSeedRand() {
|
|||
func (s *Service) updateJitterSeed(ctx context.Context) {
|
||||
for {
|
||||
select {
|
||||
case <-time.Tick(1 * time.Hour):
|
||||
case <-time.After(1 * time.Hour):
|
||||
s.updateJitterSeedRand()
|
||||
case <-ctx.Done():
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue