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:
@@ -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?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user