Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qianye1001 committed Dec 25, 2024
1 parent 552cf9e commit 9d27eba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ public PushConsumer unsubscribe(String topic) {
private ListenableFuture<Endpoints> pickEndpointsToQueryAssignments(String topic) {
final ListenableFuture<TopicRouteData> future = getRouteData(topic);
return Futures.transformAsync(future, topicRouteData -> {
if (topicRouteData.getTotalEndpoints().contains(this.getEndpoints())) {
return Futures.immediateFuture(this.getEndpoints());
}
Endpoints endpoints = topicRouteData.pickEndpointsToQueryAssignments();
return Futures.immediateFuture(endpoints);
}, MoreExecutors.directExecutor());
Expand Down

0 comments on commit 9d27eba

Please # to comment.