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

Update file_info_poller to track a process name and make sqlx an optional dependency #693

Merged
merged 6 commits into from
Jan 2, 2024

Conversation

bbalser
Copy link
Contributor

@bbalser bbalser commented Dec 16, 2023

  • Add process_name, defaulted to 'default', to file_info_poller to allow 2 instances reading the same source data to completely independent of each other.
  • Added traits and feature(sqlx-postgres) to make sqlx an optional dependency of the file-store crate

@bbalser bbalser marked this pull request as ready for review December 17, 2023 19:00
@@ -57,3 +57,4 @@ tempfile = "3"

[features]
local = ["aws-types"]
sqlx-postgres = ["sqlx"]
Copy link
Contributor

Choose a reason for hiding this comment

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

does this make the option dependency "on" by default? might want to add that and then allow the default-features :false ?

so under [features] add the line default = ["sqlx-postgres"] and then you can remove the feature-enabling changes to all of the other cargo.toml files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed ed2b337

file_store/src/file_info_poller.rs Show resolved Hide resolved
@bbalser bbalser force-pushed the bbalser/file-info-poller-updates branch from ed2b337 to 10ddea1 Compare December 21, 2023 10:15
@bbalser bbalser merged commit e77f349 into main Jan 2, 2024
1 check passed
@bbalser bbalser deleted the bbalser/file-info-poller-updates branch January 2, 2024 13:57
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.

4 participants