We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 854bd94 commit 7c811bcCopy full SHA for 7c811bc
util/metautils/nicemd.go
@@ -10,7 +10,7 @@ import (
10
"google.golang.org/grpc/metadata"
11
)
12
13
-// NiceMD is a convenience wrapper definiting extra functions on the metadata.
+// NiceMD is a convenience wrapper defining extra functions on the metadata.
14
type NiceMD metadata.MD
15
16
// ExtractIncoming extracts an inbound metadata from the server-side context.
@@ -61,7 +61,7 @@ func (m NiceMD) Clone(copiedKeys ...string) NiceMD {
61
newMd[k] = make([]string, len(vv))
62
copy(newMd[k], vv)
63
}
64
- return NiceMD(newMd)
+ return newMd
65
66
67
// ToOutgoing sets the given NiceMD as a client-side context for dispatching.
0 commit comments