feat(core): run indexer in worker (#7418)

This commit is contained in:
liuyi
2024-07-04 15:37:26 +08:00
committed by GitHub
parent 5c1f78afd4
commit 555f203be6
15 changed files with 717 additions and 362 deletions

View File

@@ -4,6 +4,7 @@ import { difference } from 'lodash-es';
import { LiveData } from '../../livedata';
import type { Memento } from '../../storage';
import { MANUALLY_STOP } from '../../utils';
import { BlobStorageOverCapacity } from './error';
const logger = new DebugLogger('affine:blob-engine');
@@ -70,7 +71,7 @@ export class BlobEngine {
}
stop() {
this.abort?.abort();
this.abort?.abort(MANUALLY_STOP);
this.abort = null;
}