mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 06:38:25 +00:00
just sleep 1 second
This commit is contained in:
@ -1711,12 +1711,8 @@ 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uint64_t PostgreSQL::_doRedisUpdate(sw::redis::Transaction &tx, std::string &controllerId,
|
||||
|
Reference in New Issue
Block a user