fix format
This commit is contained in:
parent
880b4f95b4
commit
0eb320e74c
|
|
@ -290,10 +290,10 @@ func (u *Updater) StartBackgroundUpdaterChecker(ctx context.Context, cb func(str
|
|||
go func() {
|
||||
// Don't blast an update message immediately after startup
|
||||
time.Sleep(UpdateCheckInitialDelay)
|
||||
slog.Info("beginning update checker", "interval", UpdateCheckInterval)
|
||||
slog.Info("beginning update checker", "interval", UpdateCheckInterval)
|
||||
ticker := time.NewTicker(UpdateCheckInterval)
|
||||
defer ticker.Stop()
|
||||
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
|
|
@ -304,7 +304,7 @@ func (u *Updater) StartBackgroundUpdaterChecker(ctx context.Context, cb func(str
|
|||
case <-ticker.C:
|
||||
// Regular interval check
|
||||
}
|
||||
|
||||
|
||||
// Check if auto-update is enabled
|
||||
settings, err := u.Store.Settings()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue