Skip to content

Commit 4b8ade1

Browse files
committed
Revert "blockservice: make ContextWithSession shortcut grabSessionFromContext inside newSession"
Supperseeded by #570 This reverts commit ea04c77.
1 parent 79cb4e2 commit 4b8ade1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blockservice/blockservice.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ func ContextWithSession(ctx context.Context, bs BlockService) context.Context {
483483
if grabSessionFromContext(ctx, bs) != nil {
484484
return ctx
485485
}
486-
return EmbedSessionInContext(ctx, newSession(ctx, bs))
486+
return EmbedSessionInContext(ctx, NewSession(ctx, bs))
487487
}
488488

489489
// EmbedSessionInContext is like [ContextWithSession] but it allows to embed an existing session.

0 commit comments

Comments
 (0)