whoops leveldb keys not namespaceable and probably more
parent
52479ed8a0
commit
15c5e73d05
|
|
@ -2,6 +2,7 @@ package storage
|
|||
|
||||
import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/syndtr/goleveldb/leveldb"
|
||||
"github.com/syndtr/goleveldb/leveldb/filter"
|
||||
|
|
@ -39,6 +40,7 @@ func (ldb *LevelDB) List(ns []string, limits ...string) ([]string, error) {
|
|||
} else if k > limits[1] {
|
||||
break
|
||||
}
|
||||
k = strings.TrimPrefix(k, namespace+"/")
|
||||
keys = append(keys, k)
|
||||
}
|
||||
err := it.Error()
|
||||
|
|
|
|||
Loading…
Reference in New Issue