From c12d1eef3455d5e806c305ed0e80af2971c84920 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 c4ebcac5432bfc..92930f7085e7ba 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -1807,7 +1807,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