Skip to content

Commit

Permalink
use ticker
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Oct 23, 2024
1 parent 502b4aa commit 7d65980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/vtorc/logic/vtorc.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ func ContinuousDiscovery() {
}

recoveryTicker := time.NewTicker(time.Duration(config.Config.RecoveryPollSeconds) * time.Second)
defer recoveryTicker.Stop()
if !config.Config.AllowRecovery {
recoveryTicker.Stop()
}
Expand Down

0 comments on commit 7d65980

Please sign in to comment.