Skip to content

Commit

Permalink
refactor(cosmovisor): add missing stop ticker (#19400)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
  • Loading branch information
hoanguyenkh and alexanderbez authored Feb 12, 2024
1 parent 313a989 commit c4d673c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cosmovisor/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func newUpgradeFileWatcher(cfg *Config, logger log.Logger) (*fileWatcher, error)

func (fw *fileWatcher) Stop() {
close(fw.cancel)
fw.ticker.Stop()
}

// MonitorUpdate pools the filesystem to check for new upgrade currentInfo.
Expand Down

0 comments on commit c4d673c

Please sign in to comment.