-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer trailer transformer callbacks on null msg-body to subscription (#…
…1577) Motivation: When we have a null msg-body and call `transform`, then the callbacks of the trailer transformer are invoked on the calling thread rather than the subscriber thread. Modifications: - Used `Publisher#defer` to defer the invocation of `TrailersTransformer#payloadComplete`; Result: Better error handling in case of erroneous trailer transformer (ie. trailers validations) and deferred execution of the callbacks until someone subscribers to payload body.
- Loading branch information
Showing
2 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters