perf(sync): cache received snapshots for incremental transfers

This commit is contained in:
2026-09-07 23:55:42 -07:00
parent e7e4a62504
commit 36ab54627d
14 changed files with 572 additions and 32 deletions
+2
View File
@@ -17,6 +17,7 @@ import {
runSsh,
} from '../core/services/stats-sync/ssh';
import { createSnapshotTransfer } from '../core/services/stats-sync/snapshot-transfer';
import { createTransferCache } from '../core/services/stats-sync/transfer-cache';
import {
ensureTrackerQuiescentFlow,
runSyncFlow,
@@ -64,6 +65,7 @@ function buildSyncCliDeps(): SyncFlowDeps {
detectRemoteShellFlavor,
resolveRemoteSubminerCommand,
createSnapshotTransfer,
transferCache: createTransferCache(),
runSsh,
canConnectUnixSocket: canConnectSocket,
realpathSync: (candidate) => fs.realpathSync(candidate),