Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Fix deepscan issues (#136)
Browse files Browse the repository at this point in the history
💅 Fix deepscan issues
  • Loading branch information
shuse2 committed Sep 20, 2023
1 parent 4c5ff1a commit a9ce94b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions benchmark/iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ const getRandomBytes = (num = 32) => crypto.randomBytes(num);
(async () => {
const db = new Database('.tmp', { readonly: false });

const keys = [];
for (let i = 0; i < 1000; i++) {
const key = getRandomBytes();
await db.set(key, getRandomBytes(100))
keys.push(key);
}

for (let i = 0; i < 1000; i++) {
console.log('key', keys.length)
console.time('get');
const stream = await db.iterate({ limit: 1000 });
const blockIDs = await new Promise((resolve, reject) => {
Expand Down
1 change: 0 additions & 1 deletion state_db.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
*/
'use strict';

const { resolveObjectURL } = require("buffer");
const {
state_db_new,
state_db_close,
Expand Down

0 comments on commit a9ce94b

Please sign in to comment.