mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-25 04:55:04 +00:00
Allow errors as well as closes for now to remove some brittleness
This commit is contained in:
2 files changed
+9
-5
No files matched your search
@@ -273,7 +273,7 @@ impl FeedReceiver {
|
||||
|
||||
// Then, loop a little to make sure we catch any additional messages that are sent soon after:
|
||||
loop {
|
||||
match tokio::time::timeout(Duration::from_millis(250), self.recv_feed_messages_once())
|
||||
match tokio::time::timeout(Duration::from_millis(500), self.recv_feed_messages_once())
|
||||
.await
|
||||
{
|
||||
// Timeout elapsed; return the messages we have so far
|
||||
|
||||
Reference in new issue
Block a user