Format relay client lock changes

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-06-05 16:18:15 +00:00
1 parent 5de7504b05
commit 77bb590bd8
2 files changed
+8 -14

No files matched your search

+1 -5
View File
@@ -80,11 +80,7 @@ const lockedFileInfo: FileSystem.File.Info = {
blocks: Option.none(),
};
const fileSystemError = (
tag: "AlreadyExists" | "NotFound",
method: string,
path: string,
) =>
const fileSystemError = (tag: "AlreadyExists" | "NotFound", method: string, path: string) =>
PlatformError.systemError({
_tag: tag,
module: "FileSystem",
+7 -9
View File
@@ -395,15 +395,13 @@ export const makeCloudflaredRelayClient = Effect.fn("cloudflared.make")(function
schedule: INSTALL_LOCK_RETRY_SCHEDULE,
while: (error) => error instanceof RelayClientInstallLockUnavailable,
}),
Effect.catchTag(
"RelayClientInstallLockUnavailable",
() =>
Effect.fail(
new RelayClientInstallError({
reason: "install_locked",
message: "Another relay client installation is still in progress.",
}),
),
Effect.catchTag("RelayClientInstallLockUnavailable", () =>
Effect.fail(
new RelayClientInstallError({
reason: "install_locked",
message: "Another relay client installation is still in progress.",
}),
),
),
);
});