From 0cbac8a5f1db10a13b560628f427697a1ec51432 Mon Sep 17 00:00:00 2001 From: nullchinchilla Date: Sat, 16 Nov 2024 21:15:43 -0500 Subject: [PATCH] Refactor query formatting and update announcement URL --- src/bindercore_v2.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bindercore_v2.rs b/src/bindercore_v2.rs index 38e3540..3002d2f 100644 --- a/src/bindercore_v2.rs +++ b/src/bindercore_v2.rs @@ -245,8 +245,7 @@ impl BinderCoreV2 { .await .unwrap(); - let (subcount,): (i64,) = - sqlx::query_as("select count(*) from subscriptions") + let (subcount,): (i64,) = sqlx::query_as("select count(*) from subscriptions") .fetch_one(&postgres) .await .unwrap(); @@ -258,7 +257,6 @@ impl BinderCoreV2 { .await.unwrap(); statsd_client.gauge("usercount", usercount as f64); - } } }) @@ -892,7 +890,7 @@ impl BinderCoreV2 { pub async fn get_announcements(&self) -> String { self.announcements_cache .try_get_with((), async { - let resp = reqwest::get("https://rsshub.app/telegram/channel/gephannounce") + let resp = reqwest::get("https://rsshub.app/telegram/channel/gephannounce_mirror") .compat() .await?; let bts = resp.bytes().await?;