Skip to content

Commit

Permalink
docs: update remaining wrong links
Browse files Browse the repository at this point in the history
  • Loading branch information
tutufen committed Oct 8, 2024
1 parent 2de90b5 commit 887b43b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions store/prefix/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

var _ types.KVStore = Store{}

// Store is similar with cometbft/cometbft/libs/db/prefix_db
// Store is similar with cometbft/cometbft-db/blob/v1.0.1/prefixdb.go
// both gives access only to the limited subset of the store
// for convenience or safety
type Store struct {
Expand Down Expand Up @@ -192,7 +192,7 @@ func (pi *prefixIterator) Error() error {
return nil
}

// copied from github.com/cometbft/cometbft/libs/db/prefix_db.go
// copied from github.com/cometbft/cometbft-db/blob/v1.0.1/prefixdb.go
func stripPrefix(key, prefix []byte) []byte {
if len(key) < len(prefix) || !bytes.Equal(key[:len(prefix)], prefix) {
panic("should not happen")
Expand Down
4 changes: 2 additions & 2 deletions x/accounts/internal/prefixstore/prefixstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func New(store store.KVStore, prefix []byte) store.KVStore {

var _ store.KVStore = Store{}

// Store is similar with cometbft/cometbft/libs/db/prefix_db
// Store is similar with cometbft/cometbft-db/blob/v1.0.1/prefixdb.go
// both gives access only to the limited subset of the store
// for convenience or safety
type Store struct {
Expand Down Expand Up @@ -180,7 +180,7 @@ func (pi *prefixIterator) Error() error {
return nil
}

// copied from github.com/cometbft/cometbft/libs/db/prefix_db.go
// copied from github.com/cometbft/cometbft-db/blob/v1.0.1/prefixdb.go
func stripPrefix(key, prefix []byte) []byte {
if len(key) < len(prefix) || !bytes.Equal(key[:len(prefix)], prefix) {
panic("should not happen")
Expand Down
4 changes: 2 additions & 2 deletions x/group/internal/orm/prefixstore/prefixstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func New(store store.KVStore, prefix []byte) store.KVStore {

var _ store.KVStore = Store{}

// Store is similar with cometbft/cometbft/libs/db/prefix_db
// Store is similar with cometbft/cometbft-db/blob/v1.0.1/prefixdb.go
// both gives access only to the limited subset of the store
// for convenience or safety
type Store struct {
Expand Down Expand Up @@ -180,7 +180,7 @@ func (pi *prefixIterator) Error() error {
return nil
}

// copied from github.com/cometbft/cometbft/libs/db/prefix_db.go
// copied from github.com/cometbft/cometbft-db/blob/v1.0.1/prefixdb.go
func stripPrefix(key, prefix []byte) []byte {
if len(key) < len(prefix) || !bytes.Equal(key[:len(prefix)], prefix) {
panic("should not happen")
Expand Down

0 comments on commit 887b43b

Please sign in to comment.