-
Notifications
You must be signed in to change notification settings - Fork 5
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
refac: put StratusStorage
behind a trait
#1881
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Final benchmark: |
PR Type
Enhancement
Description
Storage
trait insrc/eth/storage/mod.rs
to define a common interface for storage operations.Storage
trait forStratusStorage
insrc/eth/storage/stratus_storage.rs
.Storage
trait in multiple files across the project.StratusStorageConfig
fromstratus_storage.rs
tomod.rs
.log_filter.rs
to useStratusStorage::new_test()
instead of creating separate in-memory storages.stratus_storage.rs
.Changes walkthrough 📝
10 files
importer_offline.rs
Add Storage trait import
src/bin/importer_offline.rs
Storage
trait fromstratus::eth::storage
evm.rs
Add Storage trait import
src/eth/executor/evm.rs
Storage
trait fromcrate::eth::storage
executor.rs
Add Storage trait import
src/eth/executor/executor.rs
Storage
trait fromcrate::eth::storage
importer.rs
Add Storage trait import
src/eth/follower/importer/importer.rs
Storage
trait fromcrate::eth::storage
miner.rs
Add Storage trait import
src/eth/miner/miner.rs
Storage
trait fromcrate::eth::storage
log_filter.rs
Update test storage initialization
src/eth/primitives/log_filter.rs
InMemoryPermanentStorage
andInMemoryTemporaryStorage
build_filter
function to useStratusStorage::new_test()
log_filter_input.rs
Add Storage trait import
src/eth/primitives/log_filter_input.rs
Storage
trait fromcrate::eth::storage
rpc_server.rs
Add Storage trait import
src/eth/rpc/rpc_server.rs
Storage
trait fromcrate::eth::storage
mod.rs
Introduce Storage trait and move config
src/eth/storage/mod.rs
Storage
trait with method definitionsStratusStorageConfig
struct and its implementation herestratus_storage.rs
Implement Storage trait for StratusStorage
src/eth/storage/stratus_storage.rs
StratusStorageConfig
and related importsStorage
trait forStratusStorage