From ac55958f8c52c8f263a687126e335cc6ef97dacc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 3 Nov 2026 19:42:38 +0100 Subject: [PATCH] typo --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index ef42e57..827bf68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,18 +5,18 @@ mod hub; use crate::config::{Config, FeedConfig}; use crate::error::{FetchError, FetchFeedError, HubError, ParseFeedError}; -use crate::fetcher::{next_fetch, CacheHeaders, FetchPlan, FetchResponse}; +use crate::fetcher::{CacheHeaders, FetchPlan, FetchResponse, next_fetch}; use main_error::MainResult; -use std::collections::hash_map::DefaultHasher; use std::collections::HashMap; +use std::collections::hash_map::DefaultHasher; use std::hash::{Hash, Hasher}; use std::str::FromStr; use std::sync::atomic::{AtomicBool, Ordering}; use std::thread::sleep; use std::time::{Duration, Instant}; use tracing::{debug, error, info, instrument, warn}; -use ureq::http::header::{HeaderValue, USER_AGENT}; use ureq::http::Response; +use ureq::http::header::{HeaderValue, USER_AGENT}; use ureq::{Agent, Body}; const FETCHER_USER_AGENT: &str = concat!( @@ -68,11 +68,11 @@ fn main_loop(config: Config) { } } - interruptable_sleep(config.interval()); + interruptible_sleep(config.interval()); } } -fn interruptable_sleep(duration: Duration) { +fn interruptible_sleep(duration: Duration) { let target = Instant::now() + duration; while Instant::now() < target && RUNNING.load(Ordering::SeqCst) { sleep(Duration::from_millis(100));