mirror of
https://github.com/modrinth/code.git
synced 2026-09-05 06:19:11 +00:00
fix: server pinging interval check (#7363)
This commit is contained in:
@@ -285,7 +285,7 @@ impl ServerPingQueue {
|
||||
if ping.data.is_none() {
|
||||
return true;
|
||||
};
|
||||
ping.when.signed_duration_since(now)
|
||||
now.signed_duration_since(ping.when)
|
||||
> TimeDelta::seconds(
|
||||
ENV.SERVER_PING_MIN_INTERVAL_SEC as i64,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user