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 30, 2022
1 parent 02dcb38 commit 71c482f
Showing 1 changed file with 268 additions and 214 deletions.
Loading

0 comments on commit 71c482f

Please sign in to comment.