Fix reverse listing in bolt
This commit is contained in:
@@ -48,8 +48,8 @@ func (bc *BoltClient) List(namespace, key string, asc bool, limit int) ([]string
|
||||
found = append(found, string(k))
|
||||
}
|
||||
} else {
|
||||
key += "}}}}}}}}}}}}}}}}}}}}}}}}}}}}}"
|
||||
for k, _ := c.Seek([]byte(key)); k != nil && len(found) < limit; k, _ = c.Prev() {
|
||||
c.Seek([]byte(key + "}}}}}}}}}}}}}}"))
|
||||
for k, _ := c.Prev(); k != nil && len(found) < limit; k, _ = c.Prev() {
|
||||
found = append(found, string(k))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user