mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 10:40:12 +00:00
chore(scheduled_tasks): formatting
This commit is contained in:
parent
859785bf05
commit
9c8d4583b9
1 changed files with 5 additions and 6 deletions
|
|
@ -95,7 +95,10 @@ pub async fn update_discord_stats(ctx: AppCtx) -> anyhow::Result<()> {
|
||||||
|
|
||||||
for idx in 0..cfg.expected_gateway_count {
|
for idx in 0..cfg.expected_gateway_count {
|
||||||
let res = client
|
let res = client
|
||||||
.get(format!("http://pluralkit-gateway-{idx}.{}/stats", cfg.gateway_url))
|
.get(format!(
|
||||||
|
"http://pluralkit-gateway-{idx}.{}/stats",
|
||||||
|
cfg.gateway_url
|
||||||
|
))
|
||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
@ -185,11 +188,7 @@ pub async fn update_stats_api(ctx: AppCtx) -> anyhow::Result<()> {
|
||||||
($t:ty, $q:expr) => {{
|
($t:ty, $q:expr) => {{
|
||||||
tracing::info!("Query: {}", $q);
|
tracing::info!("Query: {}", $q);
|
||||||
let resp = client
|
let resp = client
|
||||||
.get(format!(
|
.get(format!("{}/api/v1/query?query={}", cfg.vm_url, $q))
|
||||||
"{}/api/v1/query?query={}",
|
|
||||||
cfg.vm_url,
|
|
||||||
$q
|
|
||||||
))
|
|
||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue