feat(nbstore): rename SyncStorage to DocSyncStorage (#10751)

This commit is contained in:
EYHN
2025-03-14 06:25:26 +00:00
parent 92effd9b51
commit f3ef9c4415
19 changed files with 90 additions and 79 deletions
@@ -6,7 +6,7 @@ import { Doc as YDoc, encodeStateAsUpdate } from 'yjs';
import {
IndexedDBBlobStorage,
IndexedDBDocStorage,
IndexedDBSyncStorage,
IndexedDBDocSyncStorage,
} from '../impls/idb';
import { SpaceStorage } from '../storage';
import { Sync } from '../sync';
@@ -23,7 +23,7 @@ test('doc', async () => {
type: 'workspace',
});
const peerASync = new IndexedDBSyncStorage({
const peerASync = new IndexedDBDocSyncStorage({
id: 'ws1',
flavour: 'a',
type: 'workspace',
@@ -42,7 +42,7 @@ test('doc', async () => {
const peerA = new SpaceStorage({
doc: peerADoc,
sync: peerASync,
docSync: peerASync,
});
const peerB = new SpaceStorage({
doc: peerBDoc,