Skip to content

Commit

Permalink
kvstreamer: refactor the loop of processing the batch response
Browse files Browse the repository at this point in the history
This commit refactors the code which processes the batch response in
order to separate out two different concerns:
- processing non-empty responses in order to create `Result`s
- processing incomplete responses to populate the resume request.

Now each of these "concerns" is handled in a separate loop making it
easier to reason about, especially so in the following commit.

This commit also extracts out multiple return arguments of a function
into a struct as well as updates some of the comments and moves some of
the error-checking to an earlier stage.

Release note: None
  • Loading branch information
yuzefovich committed Jun 28, 2022
1 parent e19d98d commit 9cd494b
Showing 1 changed file with 265 additions and 211 deletions.
Loading

0 comments on commit 9cd494b

Please sign in to comment.