mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
change to not ping
This commit is contained in:
parent
03d14e13f2
commit
c31c6fa7d0
2 changed files with 8 additions and 7 deletions
|
@ -87,7 +87,7 @@ pub async fn join_server(address: &ServerAddress) -> Result<(), String> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("Error: {:?}", e);
|
panic!("Error: {:?}", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
use azalea_client::connect::join_server;
|
|
||||||
use azalea_client::ping::ping_server;
|
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
|
|
||||||
let address = "95.111.249.143:10000";
|
let address = "95.111.249.143:10000";
|
||||||
// let address = "localhost:63482";
|
// let address = "localhost:63482";
|
||||||
let response = ping_server(&address.try_into().unwrap()).await.unwrap();
|
// let response = azalea_client::ping::ping_server(&address.try_into().unwrap())
|
||||||
// let _response = join_server(&address.try_into().unwrap()).await.unwrap();
|
// .await
|
||||||
println!("{}", response.description.to_ansi(None));
|
// .unwrap();
|
||||||
|
// println!("{}", response.description.to_ansi(None));
|
||||||
|
let _response = azalea_client::connect::join_server(&address.try_into().unwrap())
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
println!("connected");
|
println!("connected");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue