This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cursor): merge and simplify
nextFunction
At first glance this just looks like its merging two functions into a single, unweildy mega-function... which is sort of what it does. But! This does a few things for us: - reduces an implicit required recursive call for every cursor by combining the initialization code with a call to the first find command - places the preparation of the find command (from WireProtocol) with the actual execution (`pool.write`), which allows us to better imagine moving those steps into the wireprotocol in lock-step. This is good because it takes us one step closer to actually having a consistent wire protocol api, and ceasing rogue command construction in the codebase NODE-1785
- Loading branch information
Showing
1 changed file
with
149 additions
and
181 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