Delete Instance.dispose and Instance.reload (#25427)
This commit is contained in:
parent
7371db5cc6
commit
3b9155714d
11 changed files with 30 additions and 47 deletions
|
|
@ -8,6 +8,7 @@ import type * as Scope from "effect/Scope"
|
|||
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"
|
||||
import type { Config } from "@/config/config"
|
||||
import { InstanceRef } from "../../src/effect/instance-ref"
|
||||
import { InstanceStore } from "../../src/project/instance-store"
|
||||
import { Instance } from "../../src/project/instance"
|
||||
import { TestLLMServer } from "../lib/llm-server"
|
||||
|
||||
|
|
@ -149,7 +150,7 @@ export function provideTmpdirInstance<A, E, R>(
|
|||
? Effect.promise(() =>
|
||||
Instance.provide({
|
||||
directory: path,
|
||||
fn: () => Instance.dispose(),
|
||||
fn: () => InstanceStore.disposeInstance(Instance.current),
|
||||
}),
|
||||
).pipe(Effect.ignore)
|
||||
: Effect.void,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue