This commit is contained in:
bitfl0wer 2024-01-21 17:07:30 +01:00
parent 39b1f1fa72
commit 48fddb7378
2 changed files with 3 additions and 3 deletions

View File

@ -31,8 +31,8 @@ async fn main() {
identify.token = token; identify.token = token;
// Send off the event // Send off the event
gateway.send_identify(identify).await; gateway.send_identify(identify).await;
// Do something on the main thread so we don't quit // Do something on the main thread so we don't quit
loop { loop {
sleep(Duration::from_secs(3600)).await; sleep(Duration::from_secs(3600)).await;

View File

@ -71,7 +71,7 @@ impl HeartbeatHandler {
let mut last_heartbeat_timestamp: Instant = Instant::now(); let mut last_heartbeat_timestamp: Instant = Instant::now();
let mut last_heartbeat_acknowledged = true; let mut last_heartbeat_acknowledged = true;
let mut last_seq_number: Option<u64> = None; let mut last_seq_number: Option<u64> = None;
loop { loop {
if kill_receive.try_recv().is_ok() { if kill_receive.try_recv().is_ok() {
trace!("GW: Closing heartbeat task"); trace!("GW: Closing heartbeat task");