metadata as KeyValue type

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2019-06-13 18:05:06 +00:00
parent d134fe75a4
commit 694de9d955
7 changed files with 71 additions and 39 deletions

View File

@@ -109,7 +109,7 @@ func client() error {
}
ctx := context.Background()
md := ttrpc.Metadata{}
md := ttrpc.MD{}
md.Set("name", "koye")
ctx = ttrpc.WithMetadata(ctx, md)