,,
This commit is contained in:
parent
0c75d3b4c2
commit
3dab48f58b
1 changed files with 1141 additions and 1376 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
import { Settings } from "../sync-client/src/persistence/settings";
|
||||
import { FileOperations } from "../sync-client/src/file-operations/file-operations";
|
||||
import { Syncer } from "../sync-client/src/sync-operations/syncer";
|
||||
import { toStoredSnapshot } from "../sync-client/src/snapshot";
|
||||
import { hashSnapshot } from "../sync-client/src/snapshot";
|
||||
import { Logger } from "../sync-client/src/tracing/logger";
|
||||
import { SyncHistory } from "../sync-client/src/tracing/sync-history";
|
||||
import { FixedSizeDocumentCache } from "../sync-client/src/utils/data-structures/fix-sized-cache";
|
||||
|
|
@ -45,7 +45,7 @@ export async function fixture(
|
|||
initial.documents[id] = {
|
||||
|
||||
observedHash: (
|
||||
await toStoredSnapshot({ content: bytes(content) })
|
||||
await hashSnapshot({ content: bytes(content) })
|
||||
).hash
|
||||
};
|
||||
}
|
||||
|
|
@ -88,7 +88,6 @@ export async function fixture(
|
|||
} as unknown as WebSocketManager;
|
||||
const contentCache = new FixedSizeDocumentCache(1024);
|
||||
const syncer = new Syncer(
|
||||
"device",
|
||||
logger,
|
||||
database,
|
||||
settings,
|
||||
|
|
|
|||
Loading…
Reference in a new issue