Skip to content

Conversation

@vilgotf
Copy link
Member

@vilgotf vilgotf commented Oct 24, 2025

Extracts some code into separate methods and uses let-chaining to shrink the main actor function length.

Depends upon #2469

@github-actions github-actions bot added c-http-ratelimiting Affects the http ratelimiting crate t-refactor Refactors APIs or code. labels Oct 24, 2025
@vilgotf vilgotf marked this pull request as draft October 24, 2025 16:07
match old_entry {
MapEntry::Occupied(mut entry) => {
entry.insert(headers.bucket);
entry.insert(mem::take(&mut headers.bucket));
Copy link
Member Author

Choose a reason for hiding this comment

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

Cannot call reset_after() if headers is partially moved.

@vilgotf vilgotf force-pushed the vilgotf/clean-actor branch from d2bf5d9 to 435ed83 Compare October 24, 2025 16:21
@vilgotf vilgotf force-pushed the vilgotf/clean-actor branch from 435ed83 to 4a0f42d Compare October 24, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-http-ratelimiting Affects the http ratelimiting crate t-refactor Refactors APIs or code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants