Skip to content

Commit

Permalink
fix: custom resolver priority
Browse files Browse the repository at this point in the history
Signed-off-by: Pradeep <pradeepbbl@gmail.com>
  • Loading branch information
pradeepbbl committed Oct 11, 2024
1 parent a4616d8 commit 8328fee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ protected boolean isAvailable() {
return true;
}

// setting priority higher than the default i.e. 5
// could lead to issue since the resolver override the default
// dns provider.
// https://grpc.github.io/grpc-java/javadoc/io/grpc/NameResolverProvider.html?is-external=true#priority()
@Override
protected int priority() {
return 6;
return 5;
}

@Override
Expand Down

0 comments on commit 8328fee

Please sign in to comment.