From 22dfdc069bb98627da928e5aa0167af5f50cdb6e Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 1 Apr 2026 21:58:57 +0100 Subject: [PATCH] Update imports --- .../sync-client/src/file-operations/filesystem-operations.ts | 2 +- .../src/file-operations/safe-filesystem-operations.ts | 2 +- frontend/sync-client/src/tracing/sync-history.ts | 2 +- .../sync-client/src/utils/data-structures/fix-sized-cache.ts | 2 +- frontend/sync-client/src/utils/data-structures/locks.test.ts | 2 +- .../sync-client/src/utils/debugging/in-memory-file-system.ts | 2 +- sync-server/src/server/create_document.rs | 2 -- 7 files changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend/sync-client/src/file-operations/filesystem-operations.ts b/frontend/sync-client/src/file-operations/filesystem-operations.ts index 36dddfe6..a5fb006b 100644 --- a/frontend/sync-client/src/file-operations/filesystem-operations.ts +++ b/frontend/sync-client/src/file-operations/filesystem-operations.ts @@ -1,4 +1,4 @@ -import type { RelativePath } from "../persistence/database"; +import type { RelativePath } from "../sync-operations/types"; import type { TextWithCursors } from "reconcile-text"; diff --git a/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts b/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts index 3bd84266..8c297920 100644 --- a/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts +++ b/frontend/sync-client/src/file-operations/safe-filesystem-operations.ts @@ -1,4 +1,4 @@ -import type { RelativePath } from "../persistence/database"; +import type { RelativePath } from "../sync-operations/types"; import type { FileSystemOperations } from "./filesystem-operations"; import type { Logger } from "../tracing/logger"; import { Locks } from "../utils/data-structures/locks"; diff --git a/frontend/sync-client/src/tracing/sync-history.ts b/frontend/sync-client/src/tracing/sync-history.ts index a0e0b348..88b699fe 100644 --- a/frontend/sync-client/src/tracing/sync-history.ts +++ b/frontend/sync-client/src/tracing/sync-history.ts @@ -2,7 +2,7 @@ import { MAX_HISTORY_ENTRY_COUNT, TIMEOUT_FOR_MERGING_HISTORY_ENTRIES_IN_SECONDS } from "../consts"; -import type { RelativePath } from "../persistence/database"; +import type { RelativePath } from "../sync-operations/types"; import type { Logger } from "./logger"; import { removeFromArray } from "../utils/remove-from-array"; import { EventListeners } from "../utils/data-structures/event-listeners"; diff --git a/frontend/sync-client/src/utils/data-structures/fix-sized-cache.ts b/frontend/sync-client/src/utils/data-structures/fix-sized-cache.ts index 51ad41c1..44a71dc8 100644 --- a/frontend/sync-client/src/utils/data-structures/fix-sized-cache.ts +++ b/frontend/sync-client/src/utils/data-structures/fix-sized-cache.ts @@ -1,6 +1,6 @@ // Implements an in-memory fixed-size cache for document contents, -import type { VaultUpdateId } from "../../persistence/database"; +import type { VaultUpdateId } from "../../sync-operations/types"; // Doubly-linked list node for O(1) LRU operations class LRUNode { diff --git a/frontend/sync-client/src/utils/data-structures/locks.test.ts b/frontend/sync-client/src/utils/data-structures/locks.test.ts index 1ea633cc..fd8894b8 100644 --- a/frontend/sync-client/src/utils/data-structures/locks.test.ts +++ b/frontend/sync-client/src/utils/data-structures/locks.test.ts @@ -1,7 +1,7 @@ import { describe, it, beforeEach } from "node:test"; import assert from "node:assert"; import { Logger } from "../../tracing/logger"; -import type { RelativePath } from "../../persistence/database"; +import type { RelativePath } from "../../sync-operations/types"; import { Locks } from "./locks"; import { awaitAll } from "../await-all"; import { sleep } from "../sleep"; diff --git a/frontend/sync-client/src/utils/debugging/in-memory-file-system.ts b/frontend/sync-client/src/utils/debugging/in-memory-file-system.ts index a2564b3e..0d26b175 100644 --- a/frontend/sync-client/src/utils/debugging/in-memory-file-system.ts +++ b/frontend/sync-client/src/utils/debugging/in-memory-file-system.ts @@ -1,4 +1,4 @@ -import type { RelativePath } from "../../persistence/database"; +import type { RelativePath } from "../../sync-operations/types"; import type { TextWithCursors } from "reconcile-text"; import type { FileSystemOperations } from "../../file-operations/filesystem-operations"; diff --git a/sync-server/src/server/create_document.rs b/sync-server/src/server/create_document.rs index 39560ef8..3b073a88 100644 --- a/sync-server/src/server/create_document.rs +++ b/sync-server/src/server/create_document.rs @@ -1,4 +1,3 @@ -use anyhow::Context as _; use axum::{ Extension, Json, extract::{Path, State}, @@ -6,7 +5,6 @@ use axum::{ use axum_extra::TypedHeader; use axum_typed_multipart::TypedMultipart; use log::{debug, info}; -use reconcile_text::{BuiltinTokenizer, reconcile}; use serde::Deserialize; use super::{device_id_header::DeviceIdHeader, requests::CreateDocumentVersion};