From c5b1f04d3e7570d4ee2fc5dea1cf2cf4327ffc54 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 353be00f8b..463c866bb4 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.