From d29b83bd4afebffa655ca6a28483bf265828a547 Mon Sep 17 00:00:00 2001 From: Andrey Berenda Date: Wed, 27 Jul 2022 22:21:41 +0300 Subject: [PATCH] fix typo in nicemd --- util/metautils/nicemd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/metautils/nicemd.go b/util/metautils/nicemd.go index 1c60585dd..1928178b8 100644 --- a/util/metautils/nicemd.go +++ b/util/metautils/nicemd.go @@ -10,7 +10,7 @@ import ( "google.golang.org/grpc/metadata" ) -// NiceMD is a convenience wrapper definiting extra functions on the metadata. +// NiceMD is a convenience wrapper defining extra functions on the metadata. type NiceMD metadata.MD // ExtractIncoming extracts an inbound metadata from the server-side context. @@ -61,7 +61,7 @@ func (m NiceMD) Clone(copiedKeys ...string) NiceMD { newMd[k] = make([]string, len(vv)) copy(newMd[k], vv) } - return NiceMD(newMd) + return newMd } // ToOutgoing sets the given NiceMD as a client-side context for dispatching.