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

optimize dispatcher #342

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

optimize dispatcher #342

wants to merge 4 commits into from

Conversation

hunshenshi
Copy link
Member

No description provided.

@hunshenshi hunshenshi requested a review from saitofun March 7, 2023 14:50
)

type (
CtxDispatcher struct{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

private

Comment on lines -22 to -23
types.WithTaskWorkerContext(types.MustTaskWorkerFromContext(parent)),
types.WithTaskBoardContext(types.MustTaskBoardFromContext(parent)),
Copy link
Collaborator

Choose a reason for hiding this comment

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

revert

Copy link
Member Author

Choose a reason for hiding this comment

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

They don't need.

types.WithMqttBrokerContext(types.MustMqttBrokerFromContext(parent)),
)(context.Background())

ctx = task.WithDispatcher(parent, job.NewDispatcher(parent))
Copy link
Collaborator

Choose a reason for hiding this comment

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

could it be integrated above?

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

4 participants