Format relay client lock changes
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
5de7504b05
commit
77bb590bd8
2 files changed
+8
-14
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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.",
|
||||
}),
|
||||
),
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user