This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to the new message API and refactor PreProcessor
As part of updating the code to match the new message API, I realized the `PreProcessor` was un-necessarily complex and contained a lot of duplicated code (once for each message type). The service was initially intended to perform a bunch of checks on the incoming messages before passing them to the state machine, but it turns out the only this it actually does is checking the eligibility of the participant for the task it wants to take part to. As such we: - removed the duplicated code - update the service from `PreProcessor` to `TaskValidator`
- Loading branch information
1 parent
a8c7160
commit 9287168
Showing
13 changed files
with
210 additions
and
556 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
Oops, something went wrong.