Skip to content

Commit

Permalink
use ping_proxy instead of test_network
Browse files Browse the repository at this point in the history
  • Loading branch information
jelni committed Oct 22, 2024
1 parent 3b89e1b commit f17f261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl CommandTrait for Ping {

async fn execute(&self, ctx: &CommandContext, _: String) -> CommandResult {
let start = Instant::now();
functions::test_network(ctx.client_id).await?;
functions::ping_proxy(0, ctx.client_id).await?;
let duration = start.elapsed();
ctx.reply(format!("ping: {}ms", duration.as_millis())).await?;

Expand Down

0 comments on commit f17f261

Please sign in to comment.