fix(consensus): prevent infinite reconnection loop in RpcBlockProvider when channel is closed (#20772)

Signed-off-by: Hwangjae Lee <meetrick@gmail.com>
This commit is contained in:
Hwangjae Lee
2026-01-06 20:37:15 +09:00
committed by GitHub
parent 9773e6233d
commit a64ac7c1c7

View File

@@ -89,8 +89,8 @@ where
match res {
Ok(block) => {
if tx.send((self.convert)(block)).await.is_err() {
// Channel closed.
break;
// Channel closed - receiver dropped, exit completely.
return;
}
}
Err(err) => {