Skip to content

Commit 4067f08

Browse files
author
Ludo Galabru
committed
fix: build
1 parent e268925 commit 4067f08

File tree

1 file changed

+4
-4
lines changed
  • components/chainhook-sdk/src/observer

1 file changed

+4
-4
lines changed

components/chainhook-sdk/src/observer/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ pub async fn start_observer_commands_handler(
11881188
ObserverCommand::RegisterPredicate(spec) => {
11891189
ctx.try_log(|logger| slog::info!(logger, "Handling RegisterPredicate command"));
11901190

1191-
let spec = match chainhook_store
1191+
let mut spec = match chainhook_store
11921192
.predicates
11931193
.register_full_specification(networks, spec)
11941194
{
@@ -1209,12 +1209,12 @@ pub async fn start_observer_commands_handler(
12091209
let _ = tx.send(ObserverEvent::PredicateRegistered(spec));
12101210
} else {
12111211
ctx.try_log(|logger| slog::info!(logger, "Enabling Predicate"));
1212-
chainhook_store.predicates.enable_specification(&spec);
1212+
chainhook_store.predicates.enable_specification(&mut spec);
12131213
}
12141214
}
1215-
ObserverCommand::EnablePredicate(spec) => {
1215+
ObserverCommand::EnablePredicate(mut spec) => {
12161216
ctx.try_log(|logger| slog::info!(logger, "Enabling Predicate"));
1217-
chainhook_store.predicates.enable_specification(&spec);
1217+
chainhook_store.predicates.enable_specification(&mut spec);
12181218
if let Some(ref tx) = observer_events_tx {
12191219
let _ = tx.send(ObserverEvent::PredicateEnabled(spec));
12201220
}

0 commit comments

Comments
 (0)