Tweak backoff numbers to avoid no wal connection threshold trigger

This commit is contained in:
Kirill Bulatov
2022-07-27 20:04:34 +03:00
committed by Kirill Bulatov
parent 01f1f1c1bf
commit 58b04438f0

View File

@@ -230,8 +230,8 @@ async fn subscribe_for_timeline_updates(
}
}
const DEFAULT_BASE_BACKOFF_SECONDS: f64 = 2.0;
const DEFAULT_MAX_BACKOFF_SECONDS: f64 = 60.0;
const DEFAULT_BASE_BACKOFF_SECONDS: f64 = 0.1;
const DEFAULT_MAX_BACKOFF_SECONDS: f64 = 3.0;
async fn exponential_backoff(n: u32, base: f64, max_seconds: f64) {
if n == 0 {