Skip to content

Commit bfdd9ff

Browse files
committed
config.GrpcDialOptions
1 parent 08ae3da commit bfdd9ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ func (c Config) ExcludeGRPCCodesForPessimization() []grpcCodes.Code {
4646

4747
// GrpcDialOptions reports about used grpc dialing options
4848
func (c Config) GrpcDialOptions() []grpc.DialOption {
49-
return c.grpcOptions
49+
return append(
50+
defaultGrpcOptions(c.trace, c.secure, c.tlsConfig),
51+
c.grpcOptions...,
52+
)
5053
}
5154

5255
// Meta reports meta information about database connection
@@ -265,8 +268,6 @@ func New(opts ...Option) Config {
265268
}
266269
}
267270

268-
c.grpcOptions = append(defaultGrpcOptions(c.trace, c.secure, c.tlsConfig), c.grpcOptions...)
269-
270271
c.meta = meta.New(c.database, c.credentials, c.trace, c.metaOptions...)
271272

272273
return c

0 commit comments

Comments
 (0)