Skip to content

Commit 7a2073b

Browse files
committed
fixed bug with concurrent change slice of dial options
1 parent 3d6d4e9 commit 7a2073b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/conn/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (c *conn) dial(ctx context.Context) (cc *grpc.ClientConn, err error) {
218218

219219
address := c.endpoint.Address()
220220

221-
dialOpts := c.config.GrpcDialOptions()
221+
dialOpts := append([]grpc.DialOption{}, c.config.GrpcDialOptions()...)
222222

223223
dialOpts = append(dialOpts, grpc.WithStatsHandler(statsHandler{}))
224224

0 commit comments

Comments
 (0)