Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Haiko Schol <539509+haikoschol@users.noreply.github.com>
  • Loading branch information
timwu20 and haikoschol authored Oct 16, 2024
1 parent 8c4339b commit be0dd1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/trie/triedb/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func (ecv ExistingCachedValue[H]) hash() *H { return &ecv.Hash } //nolint:un
// The trie nodes cache, as the name indicates, is for caching trie nodes as [CachedNode]. These
// trie nodes are referenced by their hash. The value cache is caching [CachedValue]'s and these
// are referenced by the key to look them up in the trie. As multiple different tries can have
// different values under the same key, it up to the cache implementation to ensure that the
// different values under the same key, it is up to the cache implementation to ensure that the
// correct value is returned. As each trie has a different root, this root can be used to
// differentiate values under the same key.
type TrieCache[H hash.Hash] interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/trie/triedb/nibbles/nibbleslice.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (n NibbleSlice) asNibbles() *Nibbles {
return nil
}

// Return an iterator over [Partial] bytes representation.
// Return an iterator over [NibbleSlice] bytes representation.
func (n NibbleSlice) Right() []byte {
requirePadding := n.Len()%NibblesPerByte != 0
var ix uint
Expand Down

0 comments on commit be0dd1e

Please sign in to comment.