From 84e99818450db8d12dbbcca9d8acacd2794ccc5c Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 20 Sep 2021 09:15:59 +0400 Subject: [PATCH] fix stream & actions --- gateway/src/connection/stream.rs | 2 +- gateway/src/shard/connection.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gateway/src/connection/stream.rs b/gateway/src/connection/stream.rs index dbfab60..767feec 100644 --- a/gateway/src/connection/stream.rs +++ b/gateway/src/connection/stream.rs @@ -50,7 +50,7 @@ impl Stream for Connection { Poll::Pending => Poll::Pending, } } else { - Poll::Pending + Poll::Ready(None) } } } diff --git a/gateway/src/shard/connection.rs b/gateway/src/shard/connection.rs index 88ff0f3..0d66286 100644 --- a/gateway/src/shard/connection.rs +++ b/gateway/src/shard/connection.rs @@ -188,9 +188,7 @@ impl Shard { session_id: ready.session_id.clone(), }); } - Dispatch::Other(data) => { - - } + Dispatch::Other(data) => { } } } } -- 2.39.5