Skip to content

Conversation

@tottoto
Copy link
Collaborator

@tottoto tottoto commented Oct 5, 2024

Removes concurrency limit build in feature. As the server is composable with tower's services, this seems not to be needed to be built in.

#[must_use]
#[deprecated(
since = "0.12.4",
note = "Use `layer()` with a layer which provide concurrency limit feature such as `tower::limit::ConcurrencyLimitLayer` used in this config."
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that will provide 'per connection' concurrency-limiting semantics like this purports to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense. Seems necessary to add functionality to set layers for the purpose.

Copy link
Contributor

@shikhar shikhar Oct 5, 2024

Choose a reason for hiding this comment

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

I think that would be helpful, see e.g. #1616

(interpreting your comment as: purpose == per connection)

@tottoto tottoto marked this pull request as draft October 5, 2024 11:53
@tottoto tottoto deleted the remove-build-in-concurrency-limit-config branch June 20, 2025 21:17
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