[Updater]Use sensible default time between checks (#17318)

This commit is contained in:
Jaime Bernardo
2022-04-01 17:44:49 +01:00
committed by GitHub
parent 95dcbb1891
commit 12282a8dc7

View File

@@ -154,7 +154,7 @@ void PeriodicUpdateWorker()
for (;;)
{
auto state = UpdateState::read();
int64_t sleep_minutes_till_next_update = 0;
int64_t sleep_minutes_till_next_update = UPDATE_CHECK_AFTER_FAILED_INTERVAL_MINUTES;
if (state.githubUpdateLastCheckedDate.has_value())
{
int64_t last_checked_minutes_ago = timeutil::diff::in_minutes(timeutil::now(), *state.githubUpdateLastCheckedDate);