Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: moul <[email protected]>
  • Loading branch information
moul committed Dec 10, 2024
1 parent 79a03b2 commit 8e6ce0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/gno.land/p/demo/avl/pager/pager.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

// Pager is a struct that holds the AVL tree and pagination parameters.
type Pager struct {
Tree avl.TreeInterface
Tree avl.ITree
PageQueryParam string
SizeQueryParam string
DefaultPageSize int
Expand Down
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/avl/rotree/rotree.gno
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ type ReadOnlyTree struct {
makeEntrySafeFn func(interface{}) interface{}
}

// Verify that ReadOnlyTree implements TreeInterface
var _ avl.TreeInterface = (*ReadOnlyTree)(nil)
// Verify that ReadOnlyTree implements ITree
var _ avl.ITree = (*ReadOnlyTree)(nil)

// getSafeValue applies the makeEntrySafeFn if it exists, otherwise returns the original value
func (roTree *ReadOnlyTree) getSafeValue(value interface{}) interface{} {
Expand Down
4 changes: 2 additions & 2 deletions examples/gno.land/p/demo/avl/tree.gno
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package avl

type TreeInterface interface {
type ITree interface {
// read operations

Size() int
Expand Down Expand Up @@ -121,4 +121,4 @@ func (tree *Tree) ReverseIterateByOffset(offset int, count int, cb IterCbFn) boo
}

// Verify that Tree implements TreeInterface
var _ TreeInterface = (*Tree)(nil)
var _ ITree = (*Tree)(nil)

0 comments on commit 8e6ce0b

Please sign in to comment.