Merge pull request 'fix server subscriber' (#102) from idfix into v3
Reviewed-on: #102
This commit is contained in:
commit
c1fa0f991d
@ -123,6 +123,7 @@ func NewServerSubscriberWrapper() server.SubscriberWrapper {
|
||||
if id, ok := msg.Header()[DefaultMetadataKey]; ok {
|
||||
imd.Set(DefaultMetadataKey, id)
|
||||
omd.Set(DefaultMetadataKey, id)
|
||||
ctx = context.WithValue(ctx, XRequestIDKey, id)
|
||||
ctx = metadata.NewIncomingContext(ctx, imd)
|
||||
ctx = metadata.NewOutgoingContext(ctx, omd)
|
||||
} else if ctx, err = DefaultMetadataFunc(ctx); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user