Merge branch 'feature-addpeer-fix' of github.com:etschannen/foundationdb into feature-addpeer-fix

This commit is contained in:
Evan Tschannen 2020-01-03 12:15:45 -08:00
commit a9541f8066
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ Future< REPLY_TYPE(Request) > loadBalance(
state double backoff = 0;
state bool triedAllOptions = false;
loop {
if(now() - startTime > g_network->isSimulated() ? 30.0 : 600.0) {
if(now() - startTime > (g_network->isSimulated() ? 30.0 : 600.0)) {
TraceEvent ev(g_network->isSimulated() ? SevWarn : SevWarnAlways, "LoadBalanceTooLong");
ev.suppressFor(1.0);
ev.detail("Duration", now() - startTime);