Skip to content

Remove unecessary leak from Handler::default_options_with#653

Merged
kanarus merged 1 commit into
ohkami-rs:mainfrom
DoumanAsh:handle_default_options_remove_unused_leak
Mar 26, 2026
Merged

Remove unecessary leak from Handler::default_options_with#653
kanarus merged 1 commit into
ohkami-rs:mainfrom
DoumanAsh:handle_default_options_remove_unused_leak

Conversation

@DoumanAsh

@DoumanAsh DoumanAsh commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

This leak is actually not necessary because you do not need to move everything into future
Instead OPTIONS handler is refactored to compute response outside of future and only return dummy future with response

Another fix for #643

P.s. other leaks are all in request handlers too, and much harder to address, so I will need some time to consider them, hence from now one it will be one PR per leak 😅

@DoumanAsh DoumanAsh requested a review from kanarus as a code owner March 23, 2026 12:19

@kanarus kanarus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh thanks!

@kanarus kanarus added T-handler related to handler definitions or usages refactor Refactor existrng implementation labels Mar 26, 2026
@kanarus kanarus merged commit b8750ef into ohkami-rs:main Mar 26, 2026
11 checks passed
@DoumanAsh DoumanAsh deleted the handle_default_options_remove_unused_leak branch March 28, 2026 02:53
1Cln pushed a commit to 1Cln/ohkami that referenced this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor existrng implementation T-handler related to handler definitions or usages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants