mirror of https://gitee.com/bigwinds/arangodb
doubling the wait interval in agency comm is way too peeimistic
This commit is contained in:
parent
ba31d0e4a5
commit
3b62ab4b12
|
@ -1228,7 +1228,7 @@ AgencyCommResult AgencyComm::sendWithFailover(
|
||||||
if (tries > 0) {
|
if (tries > 0) {
|
||||||
std::this_thread::sleep_for(waitUntil-std::chrono::steady_clock::now());
|
std::this_thread::sleep_for(waitUntil-std::chrono::steady_clock::now());
|
||||||
if (waitInterval.count() < 5.0) {
|
if (waitInterval.count() < 5.0) {
|
||||||
waitInterval *= 2;
|
waitInterval *= 1.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue