Change initialisation and add metadata

This commit is contained in:
Asim
2015-05-26 22:39:48 +01:00
parent 7aa2c82ced
commit 36b5ca46fe
16 changed files with 182 additions and 93 deletions

View File

@@ -96,7 +96,7 @@ func (r *rpcClient) call(ctx context.Context, address string, request Request, r
Body: reqB.Bytes(),
}
md, ok := c.GetMetaData(ctx)
md, ok := c.GetMetadata(ctx)
if ok {
for k, v := range md {
msg.Header[k] = v