Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

[tokio] update code to tokio 1.0 #33

Merged
merged 2 commits into from
Jan 27, 2021
Merged

[tokio] update code to tokio 1.0 #33

merged 2 commits into from
Jan 27, 2021

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Jan 19, 2021

Add support for limiting buffers.

(This is still a WIP, requiring tokio-rs/tokio#3443 to land and be released.)

Comment on lines +292 to +293
let inner_mut = &mut self.inner_mut()[..capacity_limit];
let mut limited_buf = ReadBuf::uninit(inner_mut);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where inner_mut is useful.

Base automatically changed from master to main January 19, 2021 21:56
@sunshowers sunshowers merged commit 9df33b9 into facebookarchive:main Jan 27, 2021
@sunshowers sunshowers deleted the modernize branch January 27, 2021 19:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants