summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2022-06-22 10:58:23 -0700
committerGrant Limberg <[email protected]>2022-06-22 10:58:23 -0700
commitc1384422c3d4e109eef06667ffd86c8747dd17d1 (patch)
tree1d13ec9666c472495185bcdc544675b14bb56501 /controller/PostgreSQL.cpp
parentccc0ebd0f9dd85c9f59f64c6fdda29b326f8f7cf (diff)
just sleep 1 second
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 37d34dda..a8a741cf 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));
}
}