From 3233ec4ba77bae276e37606c0a8eb03b06be9642 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Wed, 14 Feb 2024 16:59:05 +0100 Subject: [PATCH] Revert "blockservice: make ContextWithSession shortcut grabSessionFromContext inside newSession" Supperseeded by #570 This reverts commit ea04c77d44386b10e1d0aa8b691021f84f04c0c8. --- blockservice/blockservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockservice/blockservice.go b/blockservice/blockservice.go index 353be00f8..463c866bb 100644 --- a/blockservice/blockservice.go +++ b/blockservice/blockservice.go @@ -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.