We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67cb340 commit a0fa1a9Copy full SHA for a0fa1a9
components/chainhook-cli/src/service/mod.rs
@@ -363,9 +363,17 @@ fn load_predicates_from_redis(
363
let mut predicates = vec![];
364
for key in chainhooks_to_load.iter() {
365
let chainhook = match redis_con.hget::<_, _, String>(key, "specification") {
366
- Ok(spec) => {
367
- ChainhookSpecification::deserialize_specification(&spec, key).unwrap()
368
- // todo
+ Ok(spec) => match ChainhookSpecification::deserialize_specification(&spec, key) {
+ Ok(spec) => spec,
+ Err(e) => {
369
+ error!(
370
+ ctx.expect_logger(),
371
+ "unable to load chainhook associated with key {}: {}",
372
+ key,
373
+ e.to_string()
374
+ );
375
+ continue;
376
+ }
377
}
378
Err(e) => {
379
error!(
0 commit comments