Skip to content

Commit

Permalink
rename poll_get_buffer to poll_get_buffer for consistency
Browse files Browse the repository at this point in the history
Function returning `std::task::Poll` enums are usually called `poll_*`
to tell them apart from their async variants.
  • Loading branch information
HippoBaro committed Oct 22, 2021
1 parent 332a4f8 commit 102f0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glommio/src/io/dma_file_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ impl DmaStreamReader {
))));
}

Poll::Ready(match ready!(self.get_buffer(cx, len, start_id)) {
Poll::Ready(match ready!(self.poll_get_buffer(cx, len, start_id)) {
Ok(x) => {
self.skip(len);
Ok(x)
Expand All @@ -635,7 +635,7 @@ impl DmaStreamReader {
})
}

fn get_buffer(
fn poll_get_buffer(
&mut self,
cx: &mut Context<'_>,
len: u64,
Expand Down

0 comments on commit 102f0db

Please sign in to comment.