Skip to content

update concurrency-limit to std::future#492

Merged
hawkw merged 2 commits intomaster-tokio-0.2from
eliza/0.2-concurrency-limit
Apr 27, 2020
Merged

update concurrency-limit to std::future#492
hawkw merged 2 commits intomaster-tokio-0.2from
eliza/0.2-concurrency-limit

Conversation

@hawkw
Copy link
Contributor

@hawkw hawkw commented Apr 24, 2020

This branch updates the concurrency-limit middleware to std::future.
The new implementation uses the new owned semaphore permit API added in
Tokio 0.2.19 (tokio-rs/tokio#2421). Similarly to #490, the old
implementation could not be directly translated due to tokio::sync's
Semaphore losing its poll-based API in 0.2.

hawkw added 2 commits April 24, 2020 16:57
This branch updates the `concurrency-limit` middleware to std::future.
The new implementation uses the new owned semaphore permit API added in
Tokio 0.2.19 (tokio-rs/tokio#2421). Similarly to #490, the old
implementation could not be directly translated due to `tokio::sync`'s
`Semaphore` losing its `poll`-based API in 0.2.

Signed-off-by: Eliza Weisman <[email protected]>
Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw requested a review from a team April 24, 2020 23:58
@hawkw hawkw requested a review from kleimkuhler April 27, 2020 21:56
Copy link
Contributor

@kleimkuhler kleimkuhler left a comment

Choose a reason for hiding this comment

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

Looks good!

@hawkw hawkw merged commit d0c0b22 into master-tokio-0.2 Apr 27, 2020
@olix0r olix0r deleted the eliza/0.2-concurrency-limit branch May 25, 2021 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants