Skip to content

use axum extractor to retrieve database connection from the pool #2312

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

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

syphar
Copy link
Member

@syphar syphar commented Nov 10, 2023

This is an early morning idea that I had, which IMO reduces repetition in our handlers.

I also thought about making AsyncPoolClient an extractor itself, though right now it feels better to have the separation between the extractor and the connection.

@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Nov 10, 2023
@syphar syphar merged commit 4af81bf into rust-lang:master Nov 15, 2023
@syphar syphar deleted the connection-via-extractor branch November 15, 2023 10:25
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Nov 15, 2023
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Nov 16, 2023
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