mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-20 19:42:04 +08:00
feat(nbstore): add indexer storage (#10953)
This commit is contained in:
@@ -52,6 +52,10 @@ export class PriorityQueue {
|
||||
return removed;
|
||||
}
|
||||
|
||||
has(id: string) {
|
||||
return this.priorityMap.has(id);
|
||||
}
|
||||
|
||||
clear() {
|
||||
this.tree.clear();
|
||||
this.priorityMap.clear();
|
||||
@@ -64,6 +68,6 @@ export class PriorityQueue {
|
||||
}
|
||||
|
||||
get length() {
|
||||
return this.tree.count;
|
||||
return this.tree.count.bind(this.tree);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user