-
Notifications
You must be signed in to change notification settings - Fork 1.1k
stream pipelining #3095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream pipelining #3095
Conversation
3d2a5ee to
0870ece
Compare
leoyvens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more encapsulated approach which I'd suggest is to introduce a BufferedBlockStream, which takes as input a block stream and a buffer size, and returns
1bacbbe to
72d5aaf
Compare
e518cf7 to
abf15a3
Compare
3f6b299 to
cc1e71a
Compare
evaporei
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, still I think it's worth to have @leoyvens take a last look
126af66 to
4e5652b
Compare
a6013a8 to
ded67bf
Compare
| use tokio::task; | ||
|
|
||
| const MINUTE: Duration = Duration::from_secs(60); | ||
| const BUFFERED_BLOCK_STREAM_SIZE: usize = 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BUFFERED_POLLING_BLOCK_STREAM_SIZE would be more accurate.
ded67bf to
448970a
Compare
76f8966 to
b0802c4
Compare
b0802c4 to
74cd3b7
Compare
No description provided.