diff options
| author | Grant Limberg <[email protected]> | 2022-06-22 10:07:55 -0700 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2022-06-22 10:07:55 -0700 |
| commit | 17bc9d308505bb8c2c501021bd298efde06a7abb (patch) | |
| tree | f8bc3252ad23c6d99a52d0b51cd7b3f739dd3f83 /controller/PostgreSQL.cpp | |
| parent | 436f481a34f818127484f87bd31b5c4c3739e697 (diff) | |
redis thread now uses this_thread::yield()
Diffstat (limited to 'controller/PostgreSQL.cpp')
| -rw-r--r-- | controller/PostgreSQL.cpp | 4 |
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(); } } |
