From 02c77b433ae4a1c4dc88362835e3c6d0e3e0c73e Mon Sep 17 00:00:00 2001 From: Jorropo Date: Mon, 15 Jan 2024 12:42:32 +0100 Subject: [PATCH] blockservice: fix symbol name in docs --- blockservice/blockservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockservice/blockservice.go b/blockservice/blockservice.go index 72ca44b84..7733788ec 100644 --- a/blockservice/blockservice.go +++ b/blockservice/blockservice.go @@ -494,7 +494,7 @@ func ContextWithSession(ctx context.Context, bs BlockService) context.Context { return EmbedSessionInContext(ctx, newSession(ctx, bs)) } -// EmbedSessionInContext is like [NewSessionContext] but it allows to embed an existing session. +// EmbedSessionInContext is like [ContextWithSession] but it allows to embed an existing session. func EmbedSessionInContext(ctx context.Context, ses *Session) context.Context { // use ses.bs as a key, so if multiple blockservices use embeded sessions it gets dispatched to the matching blockservice. return context.WithValue(ctx, ses.bs, ses)