Skip to content

Commit

Permalink
correct the func name in meatadata log (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
Windfarer authored and tonybase committed May 31, 2022
1 parent acb4588 commit 13e5fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 13e5fd2

Please sign in to comment.