|
|
@@ -651,7 +651,7 @@ export const layer = (options?: Options) => Layer.effect(
|
|
|
|
|
|
if (fetch && !process.argv.includes("--get-yargs-completions")) {
|
|
|
// Schedule.spaced runs the effect once, then waits between completions.
|
|
|
- yield* Effect.forkScoped(refresh().pipe(Effect.repeat(Schedule.spaced("60 minutes")), Effect.ignore))
|
|
|
+ yield* Effect.forkScoped(refresh().pipe(Effect.repeat(Schedule.spaced(ttl)), Effect.ignore))
|
|
|
}
|
|
|
|
|
|
return Service.of({ get, refresh })
|