mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
feat(nbstore): add indexer sync version (#11324)
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import { DummyConnection } from '../../connection';
|
||||
import type { DocClock } from '../doc';
|
||||
import { IndexerSyncStorageBase } from '../indexer-sync';
|
||||
import { type DocIndexedClock, IndexerSyncStorageBase } from '../indexer-sync';
|
||||
|
||||
export class DummyIndexerSyncStorage extends IndexerSyncStorageBase {
|
||||
override connection = new DummyConnection();
|
||||
override getDocIndexedClock(_docId: string): Promise<DocClock | null> {
|
||||
override getDocIndexedClock(_docId: string): Promise<DocIndexedClock | null> {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
override setDocIndexedClock(_docClock: DocClock): Promise<void> {
|
||||
override setDocIndexedClock(_docClock: DocIndexedClock): Promise<void> {
|
||||
return Promise.resolve();
|
||||
}
|
||||
override clearDocIndexedClock(_docId: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user