Skip to content

Commit

Permalink
Restore the filtering of UtxosChanged notifications based on compound…
Browse files Browse the repository at this point in the history
…ed subscriptions in RPC core, gRPC server and wRPC server
  • Loading branch information
tiram88 committed Jan 30, 2024
1 parent 0c220aa commit e400e02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpc/grpc/server/src/connection_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl ConnectionHandler {
let converter = Arc::new(GrpcServiceConverter::new());
let collector = Arc::new(GrpcServiceCollector::new(GRPC_SERVER, core_channel.receiver(), converter));
let subscriber = Arc::new(Subscriber::new(GRPC_SERVER, core_events, core_notifier, core_listener_id));
let policies = MutationPolicies::new(UtxosChangedMutationPolicy::AllOrNothing);
let policies = MutationPolicies::new(UtxosChangedMutationPolicy::AddressSet);
let notifier: Arc<Notifier<Notification, Connection>> = Arc::new(Notifier::new(
GRPC_SERVER,
core_events,
Expand Down
2 changes: 1 addition & 1 deletion rpc/service/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl RpcCoreService {
let protocol_converter = Arc::new(ProtocolConverter::new(flow_context.clone()));

// Create the rcp-core notifier
let policies = MutationPolicies::new(UtxosChangedMutationPolicy::AllOrNothing);
let policies = MutationPolicies::new(UtxosChangedMutationPolicy::AddressSet);
let notifier =
Arc::new(Notifier::new(RPC_CORE, EVENT_TYPE_ARRAY[..].into(), collectors, subscribers, subscription_context, 1, policies));

Expand Down
2 changes: 1 addition & 1 deletion rpc/wrpc/server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Server {
let converter = Arc::new(WrpcServiceConverter::new());
let collector = Arc::new(WrpcServiceCollector::new(WRPC_SERVER, notification_channel.receiver(), converter));
let subscriber = Arc::new(Subscriber::new(WRPC_SERVER, enabled_events, service.notifier(), listener_id));
let policies = MutationPolicies::new(UtxosChangedMutationPolicy::AllOrNothing);
let policies = MutationPolicies::new(UtxosChangedMutationPolicy::AddressSet);
let wrpc_notifier = Arc::new(Notifier::new(
WRPC_SERVER,
enabled_events,
Expand Down

0 comments on commit e400e02

Please sign in to comment.