TypeScript
fix(server): use asSome for initial worktree measurement (#25206)
Julius Marmingefe585bc5b67a
diff --git a/apps/server/src/storageCleanup.ts b/apps/server/src/storageCleanup.tsindex 15d214719d5..526aaffa2ab 100644--- a/apps/server/src/storageCleanup.ts+++ b/apps/server/src/storageCleanup.ts@@ -430,7 +430,7 @@ const make = Effect.gen(function* () {const remaining = measurementDeadline - (yield* Clock.currentTimeMillis);if (!orphanSizes.has(key) && (firstMeasurement || remaining > 0)) {const measured = yield* measureWorktree(worktreePath).pipe(- firstMeasurement ? Effect.map(Option.some) : Effect.timeoutOption(remaining),+ firstMeasurement ? Effect.asSome : Effect.timeoutOption(remaining),);firstMeasurement = false;if (Option.isSome(measured)) orphanSizes.set(key, measured.value);