Skip to content
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

Refactoring operation dispatcher #90

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

didierofrivia
Copy link
Member

This PR cleans a bit the work done for the operation dispatcher. Among the changes:

  • Operations store its status and result in RefCell for interior mut
  • OperationDispatcher keeps a Vec of Rc<Operation>, then indexes cloning the Rc instead of cloning the entire object.
  • Removed get_current_operation_result fn that wasn't used.

* Operations store its status and result in RefCell for interior mut
* OperationDispatcher keeps a Vec of Rc<Operation>, then indexes cloning
  the Rc instead of cloning the entire object.

Signed-off-by: dd di cesare <didi@posteo.net>
Signed-off-by: dd di cesare <didi@posteo.net>
Copy link
Member

@adam-cattermole adam-cattermole left a comment

Choose a reason for hiding this comment

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

Nice, lgtm

@didierofrivia didierofrivia merged commit 944a4a9 into external-auth Oct 1, 2024
9 checks passed
@didierofrivia didierofrivia deleted the refactoring-operation-dispatcher branch October 1, 2024 15:21
@didierofrivia didierofrivia mentioned this pull request Oct 1, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants