Skip to content

Commit

Permalink
chore: Missing applyWithProducerFilter in sample (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw authored Nov 13, 2023
1 parent 28ff30d commit b6114db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public static Replication<Command> initWithProducerFilter(ActorSystem<?> system)
return envelope.getTags().contains(VIP_CUSTOMER_TAG);
};

return Replication.grpcReplication(replicationSettings, producerFilter, ShoppingCart::create, system);
return Replication.grpcReplication(replicationSettings, producerFilter, ShoppingCart::createWithProducerFilter, system);
}

public static Behavior<Command> createWithProducerFilter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ object ShoppingCart {
envelope.tags.contains(VipCustomerTag)
}

Replication.grpcReplication(replicationSettings, producerFilter)(ShoppingCart.apply)
Replication.grpcReplication(replicationSettings, producerFilter)(ShoppingCart.applyWithProducerFilter)
}

def applyWithProducerFilter(replicatedBehaviors: ReplicatedBehaviors[Command, Event, State]): Behavior[Command] = {
Expand Down

0 comments on commit b6114db

Please sign in to comment.