Skip to content

Commit

Permalink
use default handler in web channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jfonseca-aneo committed Jan 13, 2025
1 parent 619cc02 commit 765ed45
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ private static ChannelBase BuildWebGrpcChannel(string address,
ILogger logger)
{
using var _ = logger.LogFunction();
return Grpc.Net.Client.GrpcChannel.ForAddress(address);

var httpClientHandler = new HttpClientHandler();

return Grpc.Net.Client.GrpcChannel.ForAddress(address,
new GrpcChannelOptions
{
HttpHandler = httpClientHandler,
});
}

private ChannelBase BuildUnixSocketGrpcChannel(string address,
Expand Down

0 comments on commit 765ed45

Please sign in to comment.