Skip to content

Commit

Permalink
rm levelDB dependency sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
coldstar1993 committed Nov 20, 2023
1 parent 5634c43 commit 7988720
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,22 +311,6 @@ export class StandardIndexedTree extends TreeBase implements IndexedTree {
gte: indexToKeyLeaf(this.getName(), startingIndex),
lte: indexToKeyLeaf(this.getName(), 999999999999999999999999999n), //2n ** BigInt(this.getDepth())
});

/*
.on('data', function (data) {
const arr = data.key.toString().split(':');
const index = Number(arr[arr.length - 1]);
values[index] = decodeTreeValue(data.value);
})
.on('close', function () { })
.on('end', function () {
resolve();
})
.on('error', function () {
reject();
});
*/

try {
for await (const [key, value] of iterator) {
const arr = key.toString().split(':');
Expand Down

0 comments on commit 7988720

Please sign in to comment.