Skip to content

Commit

Permalink
Revert "blockservice: make ContextWithSession shortcut grabSessionFro…
Browse files Browse the repository at this point in the history
…mContext inside newSession"

Supperseeded by #570

This reverts commit ea04c77.
  • Loading branch information
Jorropo authored and hacdias committed Feb 27, 2024
1 parent 8924807 commit 2398100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockservice/blockservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func ContextWithSession(ctx context.Context, bs BlockService) context.Context {
if grabSessionFromContext(ctx, bs) != nil {
return ctx
}
return EmbedSessionInContext(ctx, newSession(ctx, bs))
return EmbedSessionInContext(ctx, NewSession(ctx, bs))
}

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

0 comments on commit 2398100

Please sign in to comment.