We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent debb06c commit 96825c3Copy full SHA for 96825c3
components/chainhook-cli/src/service/mod.rs
@@ -38,7 +38,17 @@ impl Service {
38
let mut chainhook_config = ChainhookConfig::new();
39
40
if predicates.is_empty() {
41
- let registered_predicates = load_predicates_from_redis(&self.config, &self.ctx)?;
+ let registered_predicates = match load_predicates_from_redis(&self.config, &self.ctx) {
42
+ Ok(predicates) => predicates,
43
+ Err(e) => {
44
+ error!(
45
+ self.ctx.expect_logger(),
46
+ "Failed loading predicate from storage: {}",
47
+ e.to_string()
48
+ );
49
+ vec![]
50
+ }
51
+ };
52
for predicate in registered_predicates.into_iter() {
53
let predicate_uuid = predicate.uuid().to_string();
54
match chainhook_config.register_specification(predicate, true) {
0 commit comments