Skip to content

Commit 8233cda

Browse files
committed
Attempt to fix flaky test
1 parent c7e243e commit 8233cda

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

quickwit/quickwit-cluster/src/cluster.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,13 @@ impl Cluster {
303303
let future = async move {
304304
let mut inner = inner.write().await;
305305
for node in inner.live_nodes.values() {
306-
if node.is_ready {
307-
change_stream_tx
306+
if node.is_ready
307+
&& change_stream_tx
308308
.send(ClusterChange::Add(node.clone()))
309-
.expect("receiver end of the channel should be open");
310-
}
309+
.is_err()
310+
{
311+
return;
312+
}
311313
}
312314
inner.change_stream_subscribers.push(change_stream_tx);
313315
};

0 commit comments

Comments
 (0)