cleanup: go fmt
This commit is contained in:
parent
7dff7f9dd8
commit
ceb72948ec
1 changed files with 5 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue