Skip to content

Commit

Permalink
Fix incorrect envelope in ClientSupervisor.
Browse files Browse the repository at this point in the history
Signed-off-by: Yufei Cai <yufei.cai@bosch.io>
  • Loading branch information
yufei-cai committed Oct 19, 2022
1 parent 0e2259f commit 9438959
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import akka.cluster.sharding.ClusterSharding;
import akka.japi.pf.DeciderBuilder;
import akka.japi.pf.ReceiveBuilder;
import akka.routing.ConsistentHashingRouter;

/**
* Supervisor of client actors that live in a shard region.
Expand Down Expand Up @@ -208,8 +207,7 @@ private void respondAndStop(final CloseConnection command) {
private void restartIfOpen(final StopShardedActor stopShardedActor) {
if (props != null) {
logger.debug("Restarting connected client actor.");
final var envelope =
new ConsistentHashingRouter.ConsistentHashableEnvelope(props, clientActorId.toString());
final var envelope = new ShardedBinaryEnvelope(props, clientActorId.toString());
ClusterSharding.get(getContext().getSystem())
.shardRegion(ConnectivityMessagingConstants.CLIENT_SHARD_REGION)
.tell(envelope, ActorRef.noSender());
Expand Down

0 comments on commit 9438959

Please sign in to comment.