Unify server pinging implementations between app and backend (#5510)

* Improve ping impl to bring parity to app lib impl

* Fix issue with new impl

* fix labrinth compile

* wip: why do servers not provide server info..

* Fix ping impl overriding port

* fix theseus_gui

* remove unneeded recursion lmit
This commit is contained in:
aecsocket
2026-03-13 16:21:09 +00:00
committed by GitHub
parent 991b4d8c13
commit d14360aba5
13 changed files with 246 additions and 225 deletions

View File

@@ -37,10 +37,12 @@ async fn main() -> Result<()> {
let connection = connection.status().await?;
println!(
"{} of {} player(s) online",
connection.status.players.online, connection.status.players.max
);
if let (Some(online), Some(max)) = (
connection.status.players.online,
connection.status.players.max,
) {
println!("{online} of {max} player(s) online");
}
connection.ping(42).await?;