fix: apply Layer.fresh at instance service definition site (#18418)
This commit is contained in:
parent
ce845a0b1b
commit
d70099b059
21 changed files with 2434 additions and 2139 deletions
|
|
@ -34,7 +34,7 @@ export function withServices<S>(
|
|||
project: Instance.project,
|
||||
}),
|
||||
)
|
||||
let resolved: Layer.Layer<S> = Layer.fresh(layer).pipe(Layer.provide(ctx)) as any
|
||||
let resolved: Layer.Layer<S> = layer.pipe(Layer.provide(ctx)) as any
|
||||
if (options?.provide) {
|
||||
for (const l of options.provide) {
|
||||
resolved = resolved.pipe(Layer.provide(l)) as any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue