-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: distinguish query types that validate
FindNode queries don't need to validate the result, so we shouldn't look for a validating stage, or handle pending results. Split queries into Query and ValidatingQuery so that we can handle only the relevant options in the enum. Importantly, we shrink the job of the final Query::Result, and add a new ValidatingQuery::PendingResult which is used to indicate some content that is waiting to be validated. Unfortunately, this comes at the cost of code duplication in content_query_event_poll, which looks a lot like query_event_poll but only handles ValidatingQuery types, so it can get access to the pending_result.
- Loading branch information
Showing
4 changed files
with
107 additions
and
58 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