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

Simplify workers, configuration and main function #29

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

Conversation

Molter73
Copy link
Contributor

@Molter73 Molter73 commented Oct 7, 2024

Move most logic from the main function into a new run function, this is a bit more idiomatic.

Replaced the Worker trait with a Worker enum, this prevents dynamic dispatching and should make the code a bit easier to follow.

Configuration overall has been simplified for all workers by removing unneeded intermediate structs and rearranging some fields. Generation of port ranges for the endpoint workload is also simpler.

@Molter73 Molter73 marked this pull request as draft October 7, 2024 14:55
@Molter73 Molter73 marked this pull request as ready for review October 7, 2024 15:31
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.

1 participant