From ceb72948ece05bdebbd4b1c0b4126a3f3134874a Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Thu, 22 Jul 2021 23:19:07 -0700 Subject: [PATCH] cleanup: go fmt --- claimtrie/node/manager.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/claimtrie/node/manager.go b/claimtrie/node/manager.go index 391b1270a7..62b76175af 100644 --- a/claimtrie/node/manager.go +++ b/claimtrie/node/manager.go @@ -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