perf(stats): use compressed incremental snapshot transfers (#241)

This commit is contained in:
2026-09-10 23:57:20 -07:00
committed by GitHub
parent 614a8ca912
commit fb2d1a512b
17 changed files with 748 additions and 25 deletions
+4 -2
View File
@@ -14,9 +14,10 @@ import {
assertSafeSshHost,
detectRemoteShellFlavor,
resolveRemoteSubminerCommand,
runScp,
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,
@@ -63,7 +64,8 @@ function buildSyncCliDeps(): SyncFlowDeps {
assertSafeSshHost,
detectRemoteShellFlavor,
resolveRemoteSubminerCommand,
runScp,
createSnapshotTransfer,
transferCache: createTransferCache(),
runSsh,
canConnectUnixSocket: canConnectSocket,
realpathSync: (candidate) => fs.realpathSync(candidate),