1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

fix warden client metadta range

This commit is contained in:
leslie 2019-05-06 18:36:51 +08:00
parent 5df7bfc200
commit 43c63d03cd

View File

@ -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 {