-
Notifications
You must be signed in to change notification settings - Fork 169
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
Cleanups of the storage definitions. #2979
Cleanups of the storage definitions. #2979
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the simplifications using the constructors (like DynamoDbStoreConfig::new
). 👍
But I'd prefer to keep types specific to different backends in different modules, personally.
linera-views/src/backends/mod.rs
Outdated
#[cfg(with_scylladb)] | ||
pub type ScyllaDbStoreError = crate::value_splitting::ValueSplittingError< | ||
crate::backends::scylla_db::ScyllaDbStoreInternalError, | ||
>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could still have these in separate submodules and re-export them, to reduce the number of cfg
statements.
In general I'm not sure if moving these directly into backends
is an improvement.
Ok, we will have to see what @ma2bd thinks as it was his initial suggestion. I like the separation. |
mod.rs
That is indeed a little problematic. So, I revamped the PR by focusing on less controversial issues that hopefully could be accepted more easily. |
Motivation
In PR #2896 it was suggested to move the definition of the stores to
mod.rs
. Ultimately, this is not what is done in this PR as there was disagreement.Proposal
The following was done:
LocalStackTestContext
that is no longer used.MissingDatabase
andAlreadyExistingDatabase
.RocksDbStoreConfig
and similar.pub
attribute when not needed.PathWithStorage
function and remove another function.VISIBLE_MAX_VALUE_SIZE
for DynbamoDb and remove the test that simply reproduce the formula.InvalidTableName
was renamed asInvalidNamespace
.Test Plan
CI as the functionality should stay exactly the same.
Release Plan
Not relevant.
Links
None.