summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2022-06-22 10:07:55 -0700
committerGrant Limberg <[email protected]>2022-06-22 10:07:55 -0700
commit17bc9d308505bb8c2c501021bd298efde06a7abb (patch)
treef8bc3252ad23c6d99a52d0b51cd7b3f739dd3f83 /controller/PostgreSQL.cpp
parent436f481a34f818127484f87bd31b5c4c3739e697 (diff)
redis thread now uses this_thread::yield()
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index b0fba46a..1700627d 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -216,7 +216,7 @@ PostgreSQL::PostgreSQL(const Identity &myId, const char *path, int listenPort, R
opts.port = _rc->port;
opts.password = _rc->password;
opts.db = 0;
- poolOpts.size = 10;
+ poolOpts.size = 25;
if (_rc->clusterMode) {
fprintf(stderr, "Using Redis in Cluster Mode\n");
_cluster = std::make_shared<sw::redis::RedisCluster>(opts, poolOpts);
@@ -1706,7 +1706,7 @@ void PostgreSQL::onlineNotification_Redis()
fprintf(stderr, "onlineNotification ran in %llu ms\n", total);
- std::this_thread::sleep_for(std::chrono::seconds(1));
+ std::this_thread::yield();
}
}