-
-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move envelope item processing/trimming logic to the
Item
class (#1824)
* Extract item trimming logic from Transport Item should take care of this check/trimming process and return the best result it can provide, instead of going back-and-forth with the Transport class. * Move MAX_SERIALIZED_PAYLOAD_SIZE to Item class The size limitation is Item's concern instead of Event's, so it makes more sense to define it in the Item class. * Item should encapsulate all the size-related logic * Change log level for dropping oversized items We use info level for other event related actions (dropping/sending). So we should also use the same level when an event is being dropped due to oversize. * Update changelog
- Loading branch information
Showing
5 changed files
with
64 additions
and
51 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
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
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