Skip to content

Commit

Permalink
rename 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 Nov 4, 2021
1 parent 14c7bb8 commit df22c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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(Ok(x))
}

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

0 comments on commit df22c38

Please sign in to comment.