Skip to content

Commit

Permalink
small enhance
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-develope committed Oct 21, 2024
1 parent 016d948 commit 9b8deeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion store/v2/commitment/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (c *CommitStore) getReader(storeKey string) (Reader, error) {

reader, ok := tree.(Reader)
if !ok {
return nil, errors.New("tree does not implement Reader")
return nil, fmt.Errorf("tree for store %s does not implement Reader", storeKey)
}

return reader, nil
Expand Down
4 changes: 2 additions & 2 deletions store/v2/root/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func NewReaderMap(v uint64, vr store.VersionedReader) *ReaderMap {
}
}

func (roa *ReaderMap) GetReader(actor []byte) (corestore.Reader, error) {
return NewReader(roa.version, roa.vReader, actor), nil
func (rm *ReaderMap) GetReader(actor []byte) (corestore.Reader, error) {
return NewReader(rm.version, rm.vReader, actor), nil
}

// Reader represents a read-only adapter for accessing data from the root store.
Expand Down

0 comments on commit 9b8deeb

Please sign in to comment.