Skip to content

Commit

Permalink
only sync actors with aggregation actor for more than one client
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schneider <johannes.schneider@bosch.io>
  • Loading branch information
jokraehe committed Jan 14, 2022
1 parent 0d869f0 commit bc4080f
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -1045,10 +1045,12 @@ private void startClientActorsIfRequired(final int clientCount, final DittoHeade

// start client actor without name so it does not conflict with its previous incarnation
clientActorRouter = getContext().actorOf(clusterRouterPoolProps);
clientActorRefsAggregationActor = getContext().actorOf(
ClientActorRefsAggregationActor.props(clientCount, getSelf(), clientActorRouter,
connectivityConfig.getClientConfig().getClientActorRefsNotificationDelay(),
clientActorAskTimeout));
if (clientCount > 1) {
clientActorRefsAggregationActor = getContext().actorOf(
ClientActorRefsAggregationActor.props(clientCount, getSelf(), clientActorRouter,
connectivityConfig.getClientConfig().getClientActorRefsNotificationDelay(),
clientActorAskTimeout));
}
updateLoggingIfEnabled();
} else if (clientActorRouter != null) {
log.debug("ClientActor already started.");
Expand Down

0 comments on commit bc4080f

Please sign in to comment.