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

refactor: decompose payload build function #28

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

jacobkaufmann
Copy link
Owner

refactor associated function Job::build into the following module-level functions:

  • build
  • build_on_state

add build_on_state so that the building logic does not require a StateProviderFactory. this should make it easier to isolate and test the building logic on a given state, moving in the direction of #13.

@jacobkaufmann jacobkaufmann merged commit 66fa2b4 into master Aug 2, 2023
1 check passed
build_on_state(config, state, cached_reads, bundles)
}

fn build_on_state<S: StateProvider, I: Iterator<Item = (BundleId, BundleCompact)>>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

this its a good function

@jacobkaufmann jacobkaufmann deleted the refactor-job-build branch August 12, 2023 20:43
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.

2 participants