|
|
@@ -26,7 +26,7 @@ func New() *FileSystem {
|
|
|
|
|
|
}
|
|
|
|
|
|
-func (fs *FileSystem) Get(nodePath string, recusive, sorting bool, index uint64, term uint64) (*Event, error) {
|
|
|
+func (fs *FileSystem) Get(nodePath string, recusive, sorted bool, index uint64, term uint64) (*Event, error) {
|
|
|
n, err := fs.InternalGet(nodePath, index, term)
|
|
|
|
|
|
if err != nil {
|
|
|
@@ -58,7 +58,7 @@ func (fs *FileSystem) Get(nodePath string, recusive, sorting bool, index uint64,
|
|
|
|
|
|
// eliminate hidden nodes
|
|
|
e.KVPairs = e.KVPairs[:i]
|
|
|
- if sorting {
|
|
|
+ if sorted {
|
|
|
sort.Sort(e)
|
|
|
}
|
|
|
} else { // node is file
|