fix warden client metadta range

pull/77/head
leslie 6 years ago
parent 5df7bfc200
commit 43c63d03cd
  1. 2
      pkg/net/rpc/warden/client.go

@ -107,6 +107,8 @@ func (c *Client) handle() grpc.UnaryClientInterceptor {
return
}
defer onBreaker(brk, &err)
_, ctx, cancel = conf.Timeout.Shrink(ctx)
defer cancel()
nmd.Range(ctx,
func(key string, value interface{}) {
if valstr, ok := value.(string); ok {

Loading…
Cancel
Save