refactor(cosmovisor): add missing stop ticker (#19400)

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
Khanh Hoa 2024-02-13 02:57:04 +07:00 committed by GitHub
parent 313a989545
commit c4d673ce66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.