From d2a240ea4f968dd0d6dcbf3eee9b23712e202eea Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Mon, 7 Oct 2024 00:39:23 +0200 Subject: [PATCH] use try_send to understand if the channel is full or disconnected, for further investigation Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- crates/core/src/blob/tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/blob/tree.rs b/crates/core/src/blob/tree.rs index 96245752..38647bc6 100644 --- a/crates/core/src/blob/tree.rs +++ b/crates/core/src/blob/tree.rs @@ -690,7 +690,7 @@ impl TreeStreamerOnce

{ let _join_handle = std::thread::spawn(move || { for (path, id, count) in in_rx { if let Err(err) = out_tx - .send(Tree::from_backend(&be, &index, id).map(|tree| (path, tree, count))) + .try_send(Tree::from_backend(&be, &index, id).map(|tree| (path, tree, count))) { panic!(" Sending tree {id} on channel failed: {err}.