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

feat: use latest actix, switch to bb8 (async everywhere), remove actions #377

Merged
merged 15 commits into from
Aug 15, 2022

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Aug 5, 2022

  • remove all actions and other low-level magic code, making it more straightforward for the most common usage
  • replace r2d2 with bb8 to make it all async
  • use first significant version in cargo.toml - this makes it easier to maintain

This fixes #349

Bump actix dependencies to the latest versions

The server.rs `fn new(pool, config)` needs more work because the new `HttpServer::new` returns a future that needs to be awaited.  I am not an expert in actix, and I'm not certain why `actix::System::new()` was being returned before, and if its still needed.  Some help is welcome.
@nyurik nyurik changed the title Make it all async, remove actions Bump all deps, make it all async, remove actions Aug 5, 2022
src/server.rs Outdated Show resolved Hide resolved
@stepankuzmin
Copy link
Collaborator

I think we can drop the refresh functionality from the app for now. Let's notify users that this feature was removed when the watch mode cli arg or env var is detected as true.

@nyurik
Copy link
Member Author

nyurik commented Aug 9, 2022

@stepankuzmin thx, good point, removed both. I think eventually we may want to revisit the watch support, so I wonder if it would make sense to remove watch support as a separate PR? this would make it easier to review this PR and easier to revert the watch removal if needed.

@stepankuzmin
Copy link
Collaborator

@nyurik yep, that would be more convenient, thanks!

@nyurik
Copy link
Member Author

nyurik commented Aug 10, 2022

@nyurik yep, that would be more convenient, thanks!

@stepankuzmin see #381 - which should be merged before this one.

@nyurik nyurik changed the title Bump all deps, make it all async, remove actions feat: Bump to latest actix and switch to bb8 (async everywhere). Remove actions. Aug 10, 2022
@nyurik nyurik changed the title feat: Bump to latest actix and switch to bb8 (async everywhere). Remove actions. feat: use latest actix, switch to bb8 (async everywhere), remove actions Aug 10, 2022
@nyurik
Copy link
Member Author

nyurik commented Aug 10, 2022

@stepankuzmin ok, done with the changes, let me know if this needs any other changes

Copy link
Collaborator

@stepankuzmin stepankuzmin left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@nyurik nyurik merged commit 1e8e676 into maplibre:main Aug 15, 2022
@nyurik nyurik deleted the rm-actions branch August 15, 2022 13:54
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.

Migrate to Actix-web 4
2 participants