Skip to content

Commit

Permalink
io: push additional frames in the front of the ready queue
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Sardan <alexandru@casperlabs.io>
  • Loading branch information
Alexandru Sardan committed Feb 28, 2024
1 parent c282665 commit e85381c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ where

// If there are more frames after this one, schedule the remainder.
if let Some(next_frame_iter) = additional_frames {
self.ready_queue.push_back(next_frame_iter);
self.ready_queue.push_front(next_frame_iter);
} else {
// No additional frames. Check if sending the next frame finishes a multi-frame message.
let about_to_finish = frame.header();
Expand Down

0 comments on commit e85381c

Please sign in to comment.