From 55d858e5cec10446517037ace65f20ac9edbecb4 Mon Sep 17 00:00:00 2001 From: Jack Platten Date: Fri, 10 Apr 2026 19:44:03 -0700 Subject: [PATCH] Update rss_poller.rs --- src/rss_poller.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rss_poller.rs b/src/rss_poller.rs index 6377fa9..2255e93 100644 --- a/src/rss_poller.rs +++ b/src/rss_poller.rs @@ -14,7 +14,7 @@ pub struct PollerConfig { impl PollerConfig { /// Load poller config from environment variables - pub fn from_env() -> Result { + pub fn from_config() -> Result { let cfg = crate::settings::build_config().map_err(|e| format!("Failed to load config: {}", e))?; @@ -173,7 +173,7 @@ async fn poll_rss(pool: &sqlx::Pool, config: &PollerConfig) -> R /// Look up a specific slug in the RSS feed on demand. /// Returns `(rkey, time_us)` if the slug is found, `None` otherwise. pub async fn lookup_slug_in_rss(slug: &str) -> Option<(String, String)> { - let config = match PollerConfig::from_env() { + let config = match PollerConfig::from_config() { Ok(c) => c, Err(e) => { log::error!("Failed to load config: {}", e); @@ -228,7 +228,7 @@ pub async fn lookup_slug_in_rss(slug: &str) -> Option<(String, String)> { /// Background task that polls RSS every 15 minutes pub async fn rss_polling_task(pool: sqlx::Pool) { - let config = match PollerConfig::from_env() { + let config = match PollerConfig::from_config() { Ok(c) => c, Err(e) => { log::error!("Failed to load config: {}", e); -- 2.51.2