just sleep 1 second

This commit is contained in:
Grant Limberg 2022-06-22 10:58:23 -07:00
parent ccc0ebd0f9
commit c1384422c3
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -1711,11 +1711,7 @@ void PostgreSQL::onlineNotification_Redis()
fprintf(stderr, "onlineNotification ran in %llu ms\n", total);
if (count > 0) {
std::this_thread::yield();
} else {
std::this_thread::sleep_for(std::chrono::seconds(1));
}
std::this_thread::sleep_for(std::chrono::seconds(1));
}
}