mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
Change initialisation and add metadata
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user