style(downloads): Added GAME_PAUSE_CHECK_INTERVAL value

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-11-09 20:00:05 +11:00
parent e288f2472b
commit e7169dd1b1
2 changed files with 5 additions and 2 deletions
@@ -1,4 +1,4 @@
use crate::auth::generate_authorization_header;
use crate::{auth::generate_authorization_header, GAME_PAUSE_CHECK_INTERVAL};
use crate::db::DatabaseImpls;
use crate::downloads::manifest::DropDownloadContext;
use crate::DB;
@@ -78,7 +78,7 @@ impl DropFileWriter {
}
GameDownloadState::Paused => {
info!("Game download paused");
sleep(Duration::from_secs(1));
sleep(GAME_PAUSE_CHECK_INTERVAL);
}
};
None