cleanup: go fmt

This commit is contained in:
Roy Lee 2021-07-22 23:19:07 -07:00
parent 7dff7f9dd8
commit ceb72948ec

View file

@ -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,
}
}
@ -78,7 +77,6 @@ func (nc *nodeCache) Delete(key string) {
}
}
type BaseManager struct {
repo Repo