From f2dde2b1da3739018c3354bc3a4b926e70ca6969 Mon Sep 17 00:00:00 2001 From: Ryan Russell Date: Wed, 14 Sep 2022 14:00:16 -0500 Subject: [PATCH] refactor(ItemList): `Incluseive` -> `Inclusive` (#3673) Signed-off-by: Ryan Russell Signed-off-by: Ryan Russell --- weed/filer/redis3/ItemList.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/filer/redis3/ItemList.go b/weed/filer/redis3/ItemList.go index 7c53c9b2c..14e306551 100644 --- a/weed/filer/redis3/ItemList.go +++ b/weed/filer/redis3/ItemList.go @@ -325,13 +325,13 @@ func (nl *ItemList) ListNames(startFrom string, visitNamesFn func(name string) b } if prevNode != nil { - if !nl.NodeScanIncluseiveAfter(prevNode.Reference(), startFrom, visitNamesFn) { + if !nl.NodeScanInclusiveAfter(prevNode.Reference(), startFrom, visitNamesFn) { return nil } } for nextNode != nil { - if !nl.NodeScanIncluseiveAfter(nextNode.Reference(), startFrom, visitNamesFn) { + if !nl.NodeScanInclusiveAfter(nextNode.Reference(), startFrom, visitNamesFn) { return nil } nextNode, err = nl.skipList.LoadElement(nextNode.Next[0]) @@ -429,7 +429,7 @@ func (nl *ItemList) NodeMin(node *skiplist.SkipListElementReference) string { return "" } -func (nl *ItemList) NodeScanIncluseiveAfter(node *skiplist.SkipListElementReference, startFrom string, visitNamesFn func(name string) bool) bool { +func (nl *ItemList) NodeScanInclusiveAfter(node *skiplist.SkipListElementReference, startFrom string, visitNamesFn func(name string) bool) bool { key := fmt.Sprintf("%s%dm", nl.prefix, node.ElementPointer) if startFrom == "" { startFrom = "-"