-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate istanbul.Message encoding/decoding (#1592)
Message decoding and encoding, prevously happend in 2 steps. This commit makes decoding and encoding a message an atomic operation, either it succeeds or it fails. This allows us to decode in just one place in the code, allowing us to have a consistent approach to decode errors. By being able to respond to decode errors at a higer level in the stack, we remove the need to pass errors back up the stack to indicate invalid messages. It also helps separate encoding and decoding logic from our domain logic.
- Loading branch information
Showing
26 changed files
with
841 additions
and
1,170 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.