Skip to content

chore: use mod.rs in db_cache #362

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 4 commits into from
Dec 2, 2024
Merged

chore: use mod.rs in db_cache #362

merged 4 commits into from
Dec 2, 2024

Conversation

flaneur2020
Copy link
Contributor

related: #346 (comment)

@flaneur2020 flaneur2020 marked this pull request as ready for review November 27, 2024 04:05
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. maintenance Maintenance work labels Nov 27, 2024
Copy link
Contributor

@rodesai rodesai left a comment

Choose a reason for hiding this comment

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

LGTM!

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Dec 1, 2024
@criccomini
Copy link
Collaborator

@flaneur2020 Took the liberty of updating this to get the tests passing. It involved two changes:

  1. Added DEFAULT_MAX_CAPACITY to mod.rs
  2. Moved db_cache.rs code into mod.rs and deleted the former

(2) had to be done to placate the linter (see the commit message for details).

I know this means we have non-import logic in mod.rs, which was something I wanted to avoid. But the linter wasn't happy, and I suppose code in mod.rs is idiomatic.

@flaneur2020
Copy link
Contributor Author

@criccomini sorry for delayed response due to business trip

i think this pr is read to get merged after your appended commit 🙏, thank you for the help on this.

@criccomini criccomini merged commit 3e7c579 into main Dec 2, 2024
6 checks passed
@criccomini criccomini deleted the chore/mod-db-cache branch December 2, 2024 05:47
AlvinKuruvilla pushed a commit to AlvinKuruvilla/slatedb that referenced this pull request Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance work size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants