mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 18:20:11 +00:00
fix(scheduled_tasks): expected_gateway_count is not inclusive
This commit is contained in:
parent
40b6ab1d87
commit
3329e48e1b
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ pub async fn update_discord_stats(ctx: AppCtx) -> anyhow::Result<()> {
|
||||||
let mut guild_count = 0;
|
let mut guild_count = 0;
|
||||||
let mut channel_count = 0;
|
let mut channel_count = 0;
|
||||||
|
|
||||||
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://cluster{idx}.{}/stats", cfg.gateway_url))
|
.get(format!("http://cluster{idx}.{}/stats", cfg.gateway_url))
|
||||||
.send()
|
.send()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue