Update ttrpc to a5bd8ce9e40bc7c065a11c6936f4d032ce
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
4
vendor/github.com/containerd/ttrpc/client.go
generated
vendored
4
vendor/github.com/containerd/ttrpc/client.go
generated
vendored
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user