mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Improve download retries.
Close https://github.com/venera-app/venera-configs/issues/39
This commit is contained in:
@@ -487,6 +487,7 @@ Future<Res<T>> runWithRetry<T>(Future<T> Function() task,
|
||||
if (i == retry - 1) {
|
||||
return Res.error(e.toString());
|
||||
}
|
||||
await Future.delayed(Duration(seconds: i + 1));
|
||||
}
|
||||
}
|
||||
throw UnimplementedError();
|
||||
|
Reference in New Issue
Block a user