mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 04:21:40 +08:00
feat(nbstore): rename SyncStorage to DocSyncStorage (#10751)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user