We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66d2102 commit 8bc29cdCopy full SHA for 8bc29cd
internal/coordination/session.go
@@ -3,6 +3,7 @@ package coordination
3
import (
4
"context"
5
"encoding/binary"
6
+ "github.com/ydb-platform/ydb-go-sdk/v3/internal/xcontext"
7
"math"
8
"math/rand"
9
"sync"
@@ -46,7 +47,7 @@ func createSession(
46
47
path string,
48
opts *options.CreateSessionOptions,
49
) (*session, error) {
- sessionCtx, cancel := context.WithCancel(context.Background())
50
+ sessionCtx, cancel := xcontext.WithCancel(xcontext.ValueOnly(ctx))
51
s := session{
52
options: opts,
53
client: client,
0 commit comments