Skip to content

Commit

Permalink
Refactor query formatting and update announcement URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Nov 17, 2024
1 parent d3f4655 commit 0cbac8a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bindercore_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -258,7 +257,6 @@ impl BinderCoreV2 {
.await.unwrap();

statsd_client.gauge("usercount", usercount as f64);

}
}
})
Expand Down Expand Up @@ -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?;
Expand Down

0 comments on commit 0cbac8a

Please sign in to comment.