fix server subscriber
Some checks failed
dependabot-automerge / automerge (pull_request) Has been skipped
prbuild / test (pull_request) Failing after 1m31s
prbuild / lint (pull_request) Failing after 2m32s
autoapprove / autoapprove (pull_request) Failing after 1m25s
automerge / automerge (pull_request) Failing after 4s
codeql / analyze (go) (pull_request) Failing after 3m5s
Some checks failed
dependabot-automerge / automerge (pull_request) Has been skipped
prbuild / test (pull_request) Failing after 1m31s
prbuild / lint (pull_request) Failing after 2m32s
autoapprove / autoapprove (pull_request) Failing after 1m25s
automerge / automerge (pull_request) Failing after 4s
codeql / analyze (go) (pull_request) Failing after 3m5s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
f163a2de72
commit
a90681e18d
@ -123,6 +123,7 @@ func NewServerSubscriberWrapper() server.SubscriberWrapper {
|
|||||||
if id, ok := msg.Header()[DefaultMetadataKey]; ok {
|
if id, ok := msg.Header()[DefaultMetadataKey]; ok {
|
||||||
imd.Set(DefaultMetadataKey, id)
|
imd.Set(DefaultMetadataKey, id)
|
||||||
omd.Set(DefaultMetadataKey, id)
|
omd.Set(DefaultMetadataKey, id)
|
||||||
|
ctx = context.WithValue(ctx, XRequestIDKey, id)
|
||||||
ctx = metadata.NewIncomingContext(ctx, imd)
|
ctx = metadata.NewIncomingContext(ctx, imd)
|
||||||
ctx = metadata.NewOutgoingContext(ctx, omd)
|
ctx = metadata.NewOutgoingContext(ctx, omd)
|
||||||
} else if ctx, err = DefaultMetadataFunc(ctx); err != nil {
|
} else if ctx, err = DefaultMetadataFunc(ctx); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user