Skip to content

Commit

Permalink
parent context
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Mar 26, 2024
1 parent 66d2102 commit 8bc29cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/coordination/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package coordination
import (
"context"
"encoding/binary"
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xcontext"
"math"
"math/rand"
"sync"
Expand Down Expand Up @@ -46,7 +47,7 @@ func createSession(
path string,
opts *options.CreateSessionOptions,
) (*session, error) {
sessionCtx, cancel := context.WithCancel(context.Background())
sessionCtx, cancel := xcontext.WithCancel(xcontext.ValueOnly(ctx))
s := session{
options: opts,
client: client,
Expand Down

0 comments on commit 8bc29cd

Please sign in to comment.