From bc8ca69e112b90b63f404d68123463846928aa73 Mon Sep 17 00:00:00 2001 From: MicaiahReid Date: Wed, 13 Sep 2023 15:21:52 -0400 Subject: [PATCH] test panic on acquire lock --- components/chainhook-sdk/src/observer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/chainhook-sdk/src/observer/mod.rs b/components/chainhook-sdk/src/observer/mod.rs index 5d080a130..2c2dbcbd7 100644 --- a/components/chainhook-sdk/src/observer/mod.rs +++ b/components/chainhook-sdk/src/observer/mod.rs @@ -1430,7 +1430,7 @@ pub async fn start_observer_commands_handler( } }, Err(e) => ctx.try_log(|logger| { - slog::warn!(logger, "unable to acquire observer_metrics_rw_lock:{}", e) + panic!("unable to acquire observer_metrics_rw_lock:{}", e) }), }; }