fix(core): do not gate fff on initial scan
This commit is contained in:
parent
c9e2a38bf4
commit
1dad38d1b5
@ -139,11 +139,6 @@ export const fffLayer = Layer.effect(
|
||||
}).pipe(Effect.orDie)
|
||||
if (!result.ok) return yield* Effect.die(result.error)
|
||||
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()).pipe(Effect.ignore))
|
||||
const scanned = yield* Effect.tryPromise({
|
||||
try: () => result.value.waitForScan(5_000),
|
||||
catch: (cause) => cause,
|
||||
}).pipe(Effect.orDie)
|
||||
if (!scanned.ok || !scanned.value) return yield* Effect.die(scanned.ok ? "fff scan timed out" : scanned.error)
|
||||
return Service.of({
|
||||
glob: (input) =>
|
||||
Effect.sync(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user