change DialOptions signature

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-06-22 23:43:38 +03:00
parent 40b5402aa5
commit 1b65507fe5
3 changed files with 27 additions and 1024 deletions

13
go.mod
View File

@ -1,8 +1,17 @@
module go.unistack.org/micro-client-grpc/v3
go 1.16
go 1.20
require (
go.unistack.org/micro/v3 v3.10.22
google.golang.org/grpc v1.52.3
google.golang.org/grpc v1.55.0
)
require (
github.com/golang/protobuf v1.5.3 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
google.golang.org/protobuf v1.30.0 // indirect
)

1034
go.sum

File diff suppressed because it is too large Load Diff

View File

@ -95,8 +95,8 @@ func MaxSendMsgSize(s int) client.Option {
type grpcDialOptions struct{}
// DialOptions to be used to configure gRPC dial options
func DialOptions(opts ...grpc.DialOption) client.CallOption {
return func(o *client.CallOptions) {
func DialOptions(opts ...grpc.DialOption) client.Option {
return func(o *client.Options) {
if o.Context == nil {
o.Context = context.Background()
}