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

This commit is contained in:
EYHN
2024-07-02 09:18:08 +00:00
parent 27d0fc5108
commit c62d79ab14
13 changed files with 697 additions and 358 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;
}