Skip to content

Commit 3236229

Browse files
Fixed a dumb dumb I did with chat
Before this fix chat was way more delayed than it was supposed to be. So its fixed.
1 parent 9aeac5f commit 3236229

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,15 +1627,15 @@ async fn main() {
16271627

16281628
thread_sender.send(chat).unwrap();
16291629
});
1630+
}
16301631

1631-
match receiver.try_recv() {
1632-
Ok(result) => {
1633-
chats = result
1634-
},
1635-
Err(crossbeam::channel::TryRecvError::Empty) => {}
1636-
Err(crossbeam::channel::TryRecvError::Disconnected) => {
1637-
eprintln!("Channel disconnected");
1638-
}
1632+
match receiver.try_recv() {
1633+
Ok(result) => {
1634+
chats = result
1635+
},
1636+
Err(crossbeam::channel::TryRecvError::Empty) => {}
1637+
Err(crossbeam::channel::TryRecvError::Disconnected) => {
1638+
eprintln!("Channel disconnected");
16391639
}
16401640
}
16411641
}

0 commit comments

Comments
 (0)