Skip to content

Commit

Permalink
Index data will be deleted again
Browse files Browse the repository at this point in the history
  • Loading branch information
stpietsch committed Jul 6, 2022
1 parent 630f18e commit cb74c7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class Storage {
}

removeIdx(key, value) {
return this.#idx.put(key, value);
return this.#idx.remove(key, value);
}

get(key) {
Expand Down
1 change: 0 additions & 1 deletion lib/ThreadPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export default class ThreadPool extends EventEmitter {
options: options,
});
function event(val) {
console.log(val);
if (val.type === "end") {
worker.off("message", event);
res(true);
Expand Down

0 comments on commit cb74c7c

Please sign in to comment.