diff --git a/store/bolt.go b/store/bolt.go index 3c3c464..dc1dc57 100644 --- a/store/bolt.go +++ b/store/bolt.go @@ -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)) } }