fix duration value

This commit is contained in:
yggverse 2025-08-13 18:26:31 +03:00
parent 7eabd23a03
commit b45d1de0b9

View file

@ -233,7 +233,7 @@ async fn main() -> Result<()> {
}
Ok(_) => panic!(),
Err(e) => {
let t = Local::now() + Duration::from_secs(config.add_torrent_ban);
let t = Local::now() + Duration::from_secs(config.resolve_torrent_ban);
log::debug!("failed to resolve torrent `{h}`: `{e}`, ban until {t}.");
assert!(ban.insert(i, t).is_none())
}