From c1384422c3d4e109eef06667ffd86c8747dd17d1 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 22 Jun 2022 10:58:23 -0700 Subject: [PATCH] just sleep 1 second --- controller/PostgreSQL.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 37d34dda9..a8a741cf9 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -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)); } }