Skip to content

Commit d4a206a

Browse files
authored
Merge pull request #1670 from ydb-platform/issue-1666
* Fixed bug with concurrent rewrites source slice of `grpc.DialOption` on dial step
2 parents 3d6d4e9 + 77ce06a commit d4a206a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Fixed bug with concurrent rewrites source slice of `grpc.DialOption` on dial step
2+
13
## v3.100.2
24
* Fixed bug in `internal/xcontext.WithDone` (not listening chan done)
35

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)