don't spam the logs quite as much on first startup

sleep the thread 1 second every round until we're actually updating
members
This commit is contained in:
Grant Limberg 2022-06-22 10:36:29 -07:00
parent 9d4336d296
commit ccc0ebd0f9
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
2 changed files with 12 additions and 5 deletions

View file

@ -138,7 +138,7 @@ private:
void onlineNotificationThread();
void onlineNotification_Postgres();
void onlineNotification_Redis();
void _doRedisUpdate(sw::redis::Transaction &tx, std::string &controllerId,
uint64_t _doRedisUpdate(sw::redis::Transaction &tx, std::string &controllerId,
std::unordered_map< std::pair<uint64_t,uint64_t>,std::pair<int64_t,InetAddress>,_PairHasher > &lastOnline);
enum OverrideMode {