Commit Graph

3 Commits

Author SHA1 Message Date
Li Yuxuan
a3a30635ef namespace: Copy ttrpc metadata before setting header
If there are multiple goroutines calling `namespace.WithNamespace` on a
ctx that already had namespace, there will be a data race when
`withTTRPCNamespaceHeader` calling `MD.Set()`. So we have to copy the md
before using it.

Signed-off-by: Li Yuxuan <liyuxuan04@baidu.com>
2019-08-09 13:16:29 +08:00
Michael Crosby
0b7abc02b2 ttrpc updates for interceptors, close, and metadata
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-06-13 19:09:07 +00:00
Michael Crosby
fa6a9f0635 Add ttrpc namespace support
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-06-04 15:21:10 +00:00