Skip to content

Commit 7c811bc

Browse files
fix typo in nicemd (#509)
1 parent 854bd94 commit 7c811bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/metautils/nicemd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"google.golang.org/grpc/metadata"
1111
)
1212

13-
// NiceMD is a convenience wrapper definiting extra functions on the metadata.
13+
// NiceMD is a convenience wrapper defining extra functions on the metadata.
1414
type NiceMD metadata.MD
1515

1616
// ExtractIncoming extracts an inbound metadata from the server-side context.
@@ -61,7 +61,7 @@ func (m NiceMD) Clone(copiedKeys ...string) NiceMD {
6161
newMd[k] = make([]string, len(vv))
6262
copy(newMd[k], vv)
6363
}
64-
return NiceMD(newMd)
64+
return newMd
6565
}
6666

6767
// ToOutgoing sets the given NiceMD as a client-side context for dispatching.

0 commit comments

Comments
 (0)