]> git.puffer.fish Git - matthieu/nova.git/commitdiff
fix stream & actions
authorMatthieu <matthieu@developershouse.xyz>
Mon, 20 Sep 2021 05:15:59 +0000 (09:15 +0400)
committerMatthieu <matthieu@developershouse.xyz>
Mon, 20 Sep 2021 05:15:59 +0000 (09:15 +0400)
gateway/src/connection/stream.rs
gateway/src/shard/connection.rs

index dbfab604f7e585194d60bf255b518f4dad29ba0f..767feec41adff177f1798f6ec752e28664f4b4bd 100644 (file)
@@ -50,7 +50,7 @@ impl Stream for Connection {
                 Poll::Pending => Poll::Pending,
             }
         } else {
-            Poll::Pending
+            Poll::Ready(None)
         }
     }
 }
index 88ff0f3f5603e455af6273d850e4f99ce8a68b0c..0d66286ac2333dcf19507cc081cd9dc6c65c2af4 100644 (file)
@@ -188,9 +188,7 @@ impl Shard {
                     session_id: ready.session_id.clone(),
                 });
             }
-            Dispatch::Other(data) => {
-                
-            }
+            Dispatch::Other(data) => {            }
         }
     }
 }