Closed cool-develope closed 5 months ago
[!WARNING]
Rate Limit Exceeded
@cool-develope has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 0 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 98d5edeec6ee28664d9f51b1d2180f2c29b04a1c and 003b80193e7458e6800e758322f8ae3821769e80.
The overarching change involves a refactor of the database interaction within a codebase, primarily affecting import paths, function calls, and type definitions. The db
package has been renamed to dbm
, and a new in-memory database backend using a B-tree has been introduced. A Wrapper
type has also been added to implement the DB
interface. Additionally, there are updates to how database backends are interacted with, including changes to backend types and iterators.
Files | Change Summary |
---|---|
basic_test.go , batch.go , batch_test.go , benchmarks/bench_test.go , benchmarks/cosmos-exim/main.go , cmd/iaviewer/main.go , diff_test.go , export_test.go , import_test.go , iterator_test.go , migrate_test.go , mock/db_mock.go , mutable_tree.go , mutable_tree_test.go , nodedb.go , nodedb_test.go , proof_iavl_test.go , proof_ics23_test.go , testutils_test.go , tree_random_test.go , tree_test.go |
Updated import paths from github.com/cosmos/cosmos-db to github.com/cosmos/iavl/db . Refactored db.NewMemDB() to dbm.NewMemDB() and db.NewDB to dbm.NewDB . Adjusted function signatures and calls to use new dbm types and methods. |
db/memdb.go , db/types.go , db/wrapper.go |
Introduced new MemDB backend, DB interface, and Wrapper type. |
internal/bytes/bytes.go |
Added new functions Cp and CpIncr . |
.github/workflows/lint.yml , Makefile |
Updated tool versions for linting. |
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?
@tac0turtle backport to v1.0.x?
@mergifyio backport release/v1.x.x
backport release/v1.x.x
Context
As discussed in this, we need to decouple
cosmos-db
fromiavl
.Wrapper
to support the old clients which usecosmos-db