Merge pull request 'fix server subscriber' (#103) from idfix into master
Reviewed-on: #103
This commit is contained in:
commit
c069636bf3
@ -122,6 +122,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