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 {
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue