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 return
} }
defer onBreaker(brk, &err) defer onBreaker(brk, &err)
_, ctx, cancel = conf.Timeout.Shrink(ctx)
defer cancel()
nmd.Range(ctx, nmd.Range(ctx,
func(key string, value interface{}) { func(key string, value interface{}) {
if valstr, ok := value.(string); ok { if valstr, ok := value.(string); ok {

Loading…
Cancel
Save