|
|
@@ -21,11 +21,6 @@ func AppendToContext(ctx context.Context, key string, value interface{}) context
|
|
|
_value = fmt.Sprint(value)
|
|
|
break
|
|
|
}
|
|
|
- md, _, ex := metadata.FromOutgoingContextRaw(ctx)
|
|
|
- if !ex {
|
|
|
- md = metadata.New(map[string]string{})
|
|
|
- }
|
|
|
- md.Set(key, _value)
|
|
|
- ctx = metadata.NewOutgoingContext(ctx, md)
|
|
|
+ ctx = metadata.AppendToOutgoingContext(ctx, key, _value)
|
|
|
return ctx
|
|
|
}
|