mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +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 {
|
||||
let res = client
|
||||
.get(format!("http://pluralkit-gateway-{idx}.{}/stats", cfg.gateway_url))
|
||||
.get(format!(
|
||||
"http://pluralkit-gateway-{idx}.{}/stats",
|
||||
cfg.gateway_url
|
||||
))
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
|
@ -185,11 +188,7 @@ pub async fn update_stats_api(ctx: AppCtx) -> anyhow::Result<()> {
|
|||
($t:ty, $q:expr) => {{
|
||||
tracing::info!("Query: {}", $q);
|
||||
let resp = client
|
||||
.get(format!(
|
||||
"{}/api/v1/query?query={}",
|
||||
cfg.vm_url,
|
||||
$q
|
||||
))
|
||||
.get(format!("{}/api/v1/query?query={}", cfg.vm_url, $q))
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue