forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chain: refactor
process_partial_encoded_chunk_request
method (near#…
…6356) Extract two more methods from `process_partial_encoded_chunk_request` which correspond to `if` bodies that used to be in it. This makes each function shorter and thus easier to read especially as in the future more branches will be added to the method. Furthermore, move sending of the message to the method changing `maybe_send_partial_encoded_chunk_response` into method which prepares the response only. This is a pure refactoring with no changes to the behaviour. Issue: near#6242
- Loading branch information
Showing
1 changed file
with
94 additions
and
68 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