Skip to content

Commit 10e2ebb

Browse files
committed
oh
1 parent 82582fb commit 10e2ebb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/main.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,9 @@ async fn main() -> anyhow::Result<()> {
6666
});
6767

6868
while let Some(item) = {
69-
let res = {
70-
let mut shard = shard.lock().await;
71-
shard.next_event(EventTypeFlags::all()).await
72-
};
73-
res
69+
let mut shard = shard.lock().await;
70+
shard.next_event(EventTypeFlags::all()).await
7471
} {
75-
tracing::debug!("{:?}", item);
7672
let Ok(event) = item else {
7773
tracing::warn!(source = ?item.unwrap_err(), "error receiving event");
7874

0 commit comments

Comments
 (0)