Randomize delays between failed getChannelDifference.
This commit is contained in:
parent
c646e43e37
commit
534f17e784
@ -38805,7 +38805,8 @@ void MessagesManager::on_get_channel_difference(
|
|||||||
if (delay == 0) {
|
if (delay == 0) {
|
||||||
delay = 1;
|
delay = 1;
|
||||||
}
|
}
|
||||||
channel_get_difference_retry_timeout_.add_timeout_in(dialog_id.get(), delay);
|
channel_get_difference_retry_timeout_.add_timeout_in(dialog_id.get(),
|
||||||
|
Random::fast(delay * 1000, delay * 1500) * 1e-3);
|
||||||
delay *= 2;
|
delay *= 2;
|
||||||
if (delay > 60) {
|
if (delay > 60) {
|
||||||
delay = Random::fast(60, 80);
|
delay = Random::fast(60, 80);
|
||||||
|
Loading…
Reference in New Issue
Block a user