From c14d65c46a78fc7c0d40b571e0457ae30e948cba Mon Sep 17 00:00:00 2001 From: Yun <995116474@qq.com> Date: Wed, 2 Apr 2025 20:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=B2=A1=E6=9C=89traceid?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster.go | 2 +- single.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster.go b/cluster.go index e698320..12c847d 100644 --- a/cluster.go +++ b/cluster.go @@ -448,7 +448,7 @@ func (c *Cluster) doTask(ctx context.Context, taskId string) { } }() - ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String) + ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String()) // 执行任务 t.Callback(ctx, t.ExtendData) diff --git a/single.go b/single.go index f616e05..ff82e8c 100644 --- a/single.go +++ b/single.go @@ -288,7 +288,7 @@ func (s *Single) doTask(ctx context.Context, call func(ctx context.Context, exte } }() - ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String) + ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String()) return call(ctx, extend) }