Closed yihuang closed 4 months ago
The recent updates enhance compatibility with the upstream SDK while introducing new object storage capabilities. Key changes include the discontinuation of support for external streaming services, updates to build configurations, and the addition of object management methods in the versiondb
and rootmulti
packages. These modifications streamline the codebase, improve maintainability, and position the project for future enhancements.
File | Change Summary |
---|---|
CHANGELOG.md |
Documents strategic shift towards upstream SDK compatibility and discontinuation of other services. |
Makefile , .github/workflows/lint.yml |
Updated build tags to include objstore , enhancing the build configuration. |
go.mod , gomod2nix.toml , store/go.mod , versiondb/go.mod |
Updated versions of cosmossdk.io/store and other dependencies to more recent commits. |
store/cachemulti/store.go |
Modified NewStore parameter, changing the first argument to nil . |
store/rootmulti/objstore.go |
New file implementing object storage functionality with methods for ObjKVStore . |
store/rootmulti/store.go |
Removed GetObjKVStore method, streamlined object type handling in loadCommitStoreFromParams . |
versiondb/multistore.go |
Updated type assertion and modified cache initialization; removed GetObjKVStore . |
versiondb/objstore.go |
Added GetObjKVStore method to MultiStore for accessing object stores. |
store/rootmulti/store.go |
Introduced CacheWrapWithTrace method, currently not implemented. |
sequenceDiagram
participant App
participant MultiStore
participant Cache
participant ObjectStore
App->>MultiStore: Request ObjKVStore
MultiStore->>Cache: Load Cache Store
Cache->>ObjectStore: Retrieve Object Store
ObjectStore-->>MultiStore: Return Object Store
MultiStore-->>App: Respond with ObjKVStore
๐ In the meadow where code does play,
A rabbit hops with cheer today!
Changes made, with care and thought,
New features bloom, old ties are caught.
With objstores here and streams away,
Letโs hop along, itโs a bright new day! ๐ผ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 0%
with 13 lines
in your changes missing coverage. Please review.
Project coverage is 36.84%. Comparing base (
7f581a6
) to head (0fc0435
).
Solution:
๐ฎ๐ป๐ฎ๐ป๐ฎ๐ป !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! ๐ฎ๐ป๐ฎ๐ป๐ฎ๐ป
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit
New Features
versiondb
package, allowing users to access object-oriented storage capabilities.CacheWrapWithTrace
for enhanced tracing of cache operations inversiondb
.Changes
BUILD_TAGS
for improved linting processes.Bug Fixes