From 567c6f4f2c39976d170111b816806453636f8241 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 1 May 2022 21:54:03 -0500 Subject: Reduce usage of AsyncRead We already receive everything from the server when it tells us the length, so we can actually just treat the stream as a Read instead of an AsyncRead. --- azalea-client/src/connect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 826bce3d..9d623215 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -135,7 +135,7 @@ impl Client { let game_loop_conn = conn.clone(); let game_loop_state = client.state.clone(); - tokio::spawn(async move { Self::game_loop(game_loop_conn, tx, game_loop_state).await }); + tokio::spawn(Self::game_loop(game_loop_conn, tx, game_loop_state)); Ok(client) } -- cgit v1.2.3