mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
remove max count for xread
This commit is contained in:
parent
1c700b7b41
commit
59151fbf86
1 changed files with 2 additions and 2 deletions
|
@ -944,9 +944,9 @@ void PostgreSQL::_membersWatcher_Redis() {
|
||||||
json tmp;
|
json tmp;
|
||||||
std::unordered_map<std::string, ItemStream> result;
|
std::unordered_map<std::string, ItemStream> result;
|
||||||
if (_rc->clusterMode) {
|
if (_rc->clusterMode) {
|
||||||
_cluster->xread(key, lastID, std::chrono::seconds(1), 10, std::inserter(result, result.end()));
|
_cluster->xread(key, lastID, std::chrono::seconds(1), 0, std::inserter(result, result.end()));
|
||||||
} else {
|
} else {
|
||||||
_redis->xread(key, lastID, std::chrono::seconds(1), 10, std::inserter(result, result.end()));
|
_redis->xread(key, lastID, std::chrono::seconds(1), 0, std::inserter(result, result.end()));
|
||||||
}
|
}
|
||||||
if (!result.empty()) {
|
if (!result.empty()) {
|
||||||
for (auto element : result) {
|
for (auto element : result) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue