mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 08:28:18 +00:00
misc
This commit is contained in:
1 parent
d83fbb993e
commit
ab90af892f
1 file changed
+9
-7
@@ -74,15 +74,17 @@ pub async fn twitch_pubsub_user_subscriber_thread(
|
||||
|
||||
loop {
|
||||
warn!("client.next()");
|
||||
let event = client.next().await.unwrap();
|
||||
let maybe_event = client.try_next().await.unwrap();
|
||||
|
||||
warn!("event: {:?}", event);
|
||||
if let Some(event) = maybe_event.as_ref() {
|
||||
warn!("event: {:?}", event);
|
||||
|
||||
match event {
|
||||
Response::Response(_) => {}
|
||||
Response::Message { .. } => {}
|
||||
Response::Pong => {}
|
||||
Response::Reconnect => {}
|
||||
match event {
|
||||
Response::Response(_) => {}
|
||||
Response::Message { .. } => {}
|
||||
Response::Pong => {}
|
||||
Response::Reconnect => {}
|
||||
}
|
||||
}
|
||||
|
||||
sleep(Duration::from_secs(5));
|
||||
|
||||
Reference in new issue
Block a user