From 13e5fd26af6f1dc995a6ba702c8adc1f9332b31a Mon Sep 17 00:00:00 2001 From: Windfarer Date: Sun, 10 Apr 2022 16:18:56 +0800 Subject: [PATCH] correct the func name in meatadata log (#1915) --- metadata/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/metadata.go b/metadata/metadata.go index a9eaa8a38..2180465d4 100644 --- a/metadata/metadata.go +++ b/metadata/metadata.go @@ -86,7 +86,7 @@ func FromClientContext(ctx context.Context) (Metadata, bool) { // with any existing metadata in the context. func AppendToClientContext(ctx context.Context, kv ...string) context.Context { if len(kv)%2 == 1 { - panic(fmt.Sprintf("metadata: AppendToOutgoingContext got an odd number of input pairs for metadata: %d", len(kv))) + panic(fmt.Sprintf("metadata: AppendToClientContext got an odd number of input pairs for metadata: %d", len(kv))) } md, _ := FromClientContext(ctx) md = md.Clone()