Skip to content

Commit

Permalink
Fix missing addChannel flag usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alesj committed Jan 16, 2025
1 parent d8638a9 commit 8e09eb0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public void addClient(ClientInfo client) {

public void addClient(ClientInfo client, boolean addChannel) {
clients.add(client);
clients.add(new ClientInfo(GrpcDotNames.CHANNEL, ClientType.CHANNEL, client.interceptors));
if (addChannel) {
clients.add(new ClientInfo(GrpcDotNames.CHANNEL, ClientType.CHANNEL, client.interceptors));
}
}

public String getClientName() {
Expand Down

0 comments on commit 8e09eb0

Please sign in to comment.