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

factors: Reorganize some http trigger code #2744

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

lann
Copy link
Collaborator

@lann lann commented Aug 22, 2024

The actual goal was to fix an integration test (which this also does) but it ultimately turned into a reorg:

  • Move header tests closer to the code they test
  • Move some server init code into Server::new to avoid passing interdependent params

lann added 2 commits August 22, 2024 09:27
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
) -> anyhow::Result<Self> {
// This needs to be a vec before building the router to handle duplicate routes
let component_trigger_configs = Vec::from_iter(
Copy link
Collaborator Author

@lann lann Aug 22, 2024

Choose a reason for hiding this comment

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

Changing HashMap -> Vec was the only substantive logic change in this PR, fixing an integration test.

@lann lann merged commit be67f73 into spinframework:factors Aug 22, 2024
2 checks passed
@lann lann deleted the factors-fix-http-trigger branch August 22, 2024 16:14
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