This commit is contained in:
Chris Lu
2021-10-07 21:13:31 -07:00
parent 0a856241fe
commit e4830bd93d
11 changed files with 30 additions and 31 deletions

View File

@@ -249,7 +249,7 @@ func (nl *NameList) DeleteName(name string) error {
}
return nil
}
if nextNameBatch != nil && len(nextNameBatch.names) + len(prevNameBatch.names) < nl.batchSize {
if nextNameBatch != nil && len(nextNameBatch.names)+len(prevNameBatch.names) < nl.batchSize {
// case 3.1 merge nextNode and prevNode
if _, err := nl.skipList.DeleteByKey(nextNode.Key); err != nil {
return err
@@ -300,7 +300,7 @@ func (nl *NameList) ListNames(startFrom string, visitNamesFn func(name string) b
}
}
return nil
return nil
}
func (nl *NameList) RemoteAllListElement() error {
@@ -323,4 +323,4 @@ func (nl *NameList) RemoteAllListElement() error {
}
return nil
}
}