app: remove min loading duration (#21655)

This commit is contained in:
Brendan Allan
2026-04-09 16:29:46 +08:00
committed by GitHub
parent 847fc9d268
commit 46f243fea7
4 changed files with 27 additions and 16 deletions

View File

@@ -182,7 +182,6 @@ function ConnectionGate(props: ParentProps<{ disableHealthCheck?: boolean }>) {
if (checkMode() === "background" || type === "http") return false
}
}).pipe(
effectMinDuration(checkMode() === "blocking" ? "1.2 seconds" : 0),
Effect.timeoutOrElse({ duration: "10 seconds", orElse: () => Effect.succeed(false) }),
Effect.ensuring(Effect.sync(() => setCheckMode("background"))),
Effect.runPromise,