feat: retry connnection on server unavailable

This commit is contained in:
DecDuck
2024-11-26 18:09:15 +11:00
parent aa1f70d344
commit e08a2b20f3
3 changed files with 32 additions and 7 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ mod settings;
mod tests;
use crate::db::DatabaseImpls;
use auth::{auth_initiate, generate_authorization_header, recieve_handshake};
use auth::{auth_initiate, generate_authorization_header, recieve_handshake, retry_connect};
use db::{add_download_dir, delete_download_dir, fetch_download_dir_stats, DatabaseInterface, DATA_ROOT_DIR};
use downloads::download_commands::*;
use downloads::download_manager::DownloadManagerBuilder;
@@ -120,6 +120,7 @@ pub fn run() {
fetch_state,
// Auth
auth_initiate,
retry_connect,
// Remote
use_remote,
gen_drop_url,