mirror of
https://github.com/2e3s/awatcher.git
synced 2025-06-04 02:20:15 +00:00
Add another connection attempt
This commit is contained in:
parent
7ac76da921
commit
b07d3958bb
@ -41,7 +41,7 @@ impl ReportClient {
|
||||
Fut: Future<Output = Result<T, E>>,
|
||||
E: std::error::Error + Send + Sync + 'static,
|
||||
{
|
||||
for (attempt, &secs) in [1, 2].iter().enumerate() {
|
||||
for (attempt, &secs) in [1, 2, 4].iter().enumerate() {
|
||||
match f().await {
|
||||
Ok(val) => return Ok(val),
|
||||
Err(e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user