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

Daemon Sender separation #387

Draft
wants to merge 58 commits into
base: main
Choose a base branch
from

Conversation

Kayanski
Copy link
Contributor

@Kayanski Kayanski commented May 13, 2024

This PR aims at separating the daemon and the sender to be able to compose with senders and queriers.

I removed the Arc wrapper around the Sender because the SenderTrait trait needs the set_options method to take a mutable reference, which arc can't do because it can't mutate the underlying object.

When using a Mutex to allow for mutability, the async methods of the trait error because of a Send bound that is not available.

We will need to think about that, if we want the Sender to be copiable

Copy link

cloudflare-pages bot commented May 13, 2024

Deploying cw-orchestrator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 95b788a
Status: ✅  Deploy successful!
Preview URL: https://11b220e2.cw-orchestrator.pages.dev
Branch Preview URL: https://nicolas-orc-126-daemon-shoul.cw-orchestrator.pages.dev

View logs

Co-authored-by: CyberHoward <88450409+CyberHoward@users.noreply.github.com>
@Kayanski Kayanski changed the base branch from main to daemon-state-ub June 6, 2024 08:45
Base automatically changed from daemon-state-ub to main June 6, 2024 09:25
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.

None yet

2 participants