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 { type nodeCacheLeaf struct {
node *Node node *Node
key string key string
} }
type nodeCache struct { type nodeCache struct {
elements map[string]*list.Element elements map[string]*list.Element
data *list.List data *list.List
maxElements int maxElements int
} }
func newNodeCache(size int) *nodeCache { func newNodeCache(size int) *nodeCache {
return &nodeCache{elements: return &nodeCache{elements: make(map[string]*list.Element, size),
make(map[string]*list.Element, size), data: list.New(),
data: list.New(),
maxElements: size, maxElements: size,
} }
} }
@ -78,7 +77,6 @@ func (nc *nodeCache) Delete(key string) {
} }
} }
type BaseManager struct { type BaseManager struct {
repo Repo repo Repo