Skip to content

Commit

Permalink
fix (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
qianye1001 authored Dec 27, 2024
1 parent d2f9588 commit 7d55793
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 7d55793

Please # to comment.