File tree 1 file changed +4
-4
lines changed
components/chainhook-sdk/src/observer
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1188,7 +1188,7 @@ pub async fn start_observer_commands_handler(
1188
1188
ObserverCommand :: RegisterPredicate ( spec) => {
1189
1189
ctx. try_log ( |logger| slog:: info!( logger, "Handling RegisterPredicate command" ) ) ;
1190
1190
1191
- let spec = match chainhook_store
1191
+ let mut spec = match chainhook_store
1192
1192
. predicates
1193
1193
. register_full_specification ( networks, spec)
1194
1194
{
@@ -1209,12 +1209,12 @@ pub async fn start_observer_commands_handler(
1209
1209
let _ = tx. send ( ObserverEvent :: PredicateRegistered ( spec) ) ;
1210
1210
} else {
1211
1211
ctx. try_log ( |logger| slog:: info!( logger, "Enabling Predicate" ) ) ;
1212
- chainhook_store. predicates . enable_specification ( & spec) ;
1212
+ chainhook_store. predicates . enable_specification ( & mut spec) ;
1213
1213
}
1214
1214
}
1215
- ObserverCommand :: EnablePredicate ( spec) => {
1215
+ ObserverCommand :: EnablePredicate ( mut spec) => {
1216
1216
ctx. try_log ( |logger| slog:: info!( logger, "Enabling Predicate" ) ) ;
1217
- chainhook_store. predicates . enable_specification ( & spec) ;
1217
+ chainhook_store. predicates . enable_specification ( & mut spec) ;
1218
1218
if let Some ( ref tx) = observer_events_tx {
1219
1219
let _ = tx. send ( ObserverEvent :: PredicateEnabled ( spec) ) ;
1220
1220
}
You can’t perform that action at this time.
0 commit comments