Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jun 8, 2023
1 parent e268925 commit 4067f08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/chainhook-sdk/src/observer/mod.rs
Expand Up @@ -1188,7 +1188,7 @@ pub async fn start_observer_commands_handler(
ObserverCommand::RegisterPredicate(spec) => {
ctx.try_log(|logger| slog::info!(logger, "Handling RegisterPredicate command"));

let spec = match chainhook_store
let mut spec = match chainhook_store
.predicates
.register_full_specification(networks, spec)
{
Expand All @@ -1209,12 +1209,12 @@ pub async fn start_observer_commands_handler(
let _ = tx.send(ObserverEvent::PredicateRegistered(spec));
} else {
ctx.try_log(|logger| slog::info!(logger, "Enabling Predicate"));
chainhook_store.predicates.enable_specification(&spec);
chainhook_store.predicates.enable_specification(&mut spec);
}
}
ObserverCommand::EnablePredicate(spec) => {
ObserverCommand::EnablePredicate(mut spec) => {
ctx.try_log(|logger| slog::info!(logger, "Enabling Predicate"));
chainhook_store.predicates.enable_specification(&spec);
chainhook_store.predicates.enable_specification(&mut spec);
if let Some(ref tx) = observer_events_tx {
let _ = tx.send(ObserverEvent::PredicateEnabled(spec));
}
Expand Down

0 comments on commit 4067f08

Please sign in to comment.