Skip to content

Commit

Permalink
fix: add timeout configuration in grpc dial function (go-kratos#3365)
Browse files Browse the repository at this point in the history
Co-authored-by: huangzw <huangzw@2345.com>
  • Loading branch information
1911860538 and huangzw authored Oct 8, 2024
1 parent af0df55 commit 5b5c253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transport/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ func dial(ctx context.Context, insecure bool, opts ...ClientOption) (*grpc.Clien
discovery.NewBuilder(
options.discovery,
discovery.WithInsecure(insecure),
discovery.WithTimeout(options.timeout),
discovery.WithSubset(options.subsetSize),
discovery.PrintDebugLog(options.printDiscoveryDebugLog),
)))
Expand Down

0 comments on commit 5b5c253

Please sign in to comment.