Allow errors as well as closes for now to remove some brittleness

This commit is contained in:
James Wilson committed 2021-08-12 12:40:53 +01:00
1 parent 705d57a3b6
commit 4480bbe72a
2 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -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