Skip to content

Commit

Permalink
cleanup: go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
roylee17 committed Jul 23, 2021
1 parent 7dff7f9 commit ceb7294
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions claimtrie/node/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,18 @@ type Manager interface {

type nodeCacheLeaf struct {
node *Node
key string
key string
}

type nodeCache struct {
elements map[string]*list.Element
data *list.List
elements map[string]*list.Element
data *list.List
maxElements int
}

func newNodeCache(size int) *nodeCache {
return &nodeCache{elements:
make(map[string]*list.Element, size),
data: list.New(),
return &nodeCache{elements: make(map[string]*list.Element, size),
data: list.New(),
maxElements: size,
}
}
Expand Down Expand Up @@ -78,7 +77,6 @@ func (nc *nodeCache) Delete(key string) {
}
}


type BaseManager struct {
repo Repo

Expand Down

0 comments on commit ceb7294

Please sign in to comment.