From 7cd6224cafb637357ae7e28043e763ce37bfe031 Mon Sep 17 00:00:00 2001 From: Tao Zhu <82401714+taozhu-chicago@users.noreply.github.com> Date: Fri, 2 Jul 2021 14:04:09 -0500 Subject: [PATCH] log warning when channel send fails (#18391) --- core/src/replay_stage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 1303c59cbf..dae7ec912d 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -1821,7 +1821,7 @@ impl ReplayStage { // send accumulated excute-timings to cost_update_service cost_update_sender .send(execute_timings) - .expect("send execution cost update to cost_model"); + .unwrap_or_else(|err| warn!("cost_update_sender failed: {:?}", err)); inc_new_counter_info!("replay_stage-replay_transactions", tx_count); did_complete_bank