Update ttrpc to a5bd8ce9e40bc7c065a11c6936f4d032ce

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2019-06-04 15:14:06 +00:00
parent faa5f55189
commit 42f24b57e4
5 changed files with 110 additions and 5 deletions

View File

@@ -99,6 +99,10 @@ func (c *Client) Call(ctx context.Context, service, method string, req, resp int
cresp = &Response{}
)
if metadata, ok := GetMetadata(ctx); ok {
creq.Metadata = metadata
}
if dl, ok := ctx.Deadline(); ok {
creq.TimeoutNano = dl.Sub(time.Now()).Nanoseconds()
}