Skip to content

Commit

Permalink
Use handler directly in gRPC interop tests (#41251)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK authored Apr 19, 2022
1 parent 33ea420 commit 315febe
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,10 @@ private async Task<IChannelWrapper> HttpClientCreateChannel()
httpClientHandler.ClientCertificates.Add(cert);
}

var httpClient = new HttpClient(httpClientHandler);

var channel = GrpcChannel.ForAddress($"{scheme}://{options.ServerHost}:{options.ServerPort}", new GrpcChannelOptions
{
Credentials = credentials,
HttpClient = httpClient,
HttpHandler = httpClientHandler,
LoggerFactory = loggerFactory
});

Expand Down

0 comments on commit 315febe

Please sign in to comment.