ws cobra publish stress mode fix

This commit is contained in:
Benjamin Sergeant
2019-04-23 16:24:10 -07:00
parent 8ff1339b80
commit 773f92347f
2 changed files with 8 additions and 2 deletions

View File

@ -53,10 +53,12 @@ namespace ix
{
cobraMetricsPublisher.push(channel, data);
}
cobraMetricsPublisher.suspend();
std::this_thread::sleep_for(std::chrono::milliseconds(100));
cobraMetricsPublisher.suspend();
cobraMetricsPublisher.resume();
// FIXME: investigate why without this check we trigger a lock
while (!cobraMetricsPublisher.isAuthenticated()) ;
}
}