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

This commit is contained in:
James Wilson
2021-08-12 12:40:53 +01:00
parent 705d57a3b6
commit 4480bbe72a
2 changed files with 9 additions and 5 deletions
+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