From dcd480278a01962ea1f117c55fdd2a9ff032e879 Mon Sep 17 00:00:00 2001 From: liyang Date: Fri, 27 Sep 2024 15:48:24 +0800 Subject: [PATCH] Update context/context.go Co-authored-by: zyy17 --- context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/context.go b/context/context.go index fe09124..598c58b 100644 --- a/context/context.go +++ b/context/context.go @@ -34,7 +34,7 @@ type Option func(ctx context.Context) context.Context func New(parent context.Context, opts ...Option) context.Context { ctx := parent for _, opt := range opts { - ctx = opt(parent) + ctx = opt(ctx) } return ctx }