diff options
| author | mat <github@matdoes.dev> | 2022-05-01 21:54:03 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-01 21:54:03 -0500 |
| commit | 567c6f4f2c39976d170111b816806453636f8241 (patch) | |
| tree | b37cc13cbd59be902fd72e43c3efb4f821f7a782 /azalea-client/src | |
| parent | c2262a212328e7a9e00091d7b41a8d8bfb5b3007 (diff) | |
| download | azalea-drasl-567c6f4f2c39976d170111b816806453636f8241.tar.xz | |
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.
Diffstat (limited to 'azalea-client/src')
| -rwxr-xr-x | azalea-client/src/connect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
