mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-02 14:31:01 +02:00
Migrate strict Effect runtime surfaces
This commit is contained in:
parent
f6878d4dd7
commit
b4ee2b691f
35 changed files with 1717 additions and 1410 deletions
|
|
@ -25,7 +25,7 @@ import {
|
|||
type ProcessingMetadata,
|
||||
} from "@trustgraph/base";
|
||||
import type { Message } from "@trustgraph/base";
|
||||
import { Clock, Config, DateTime, Duration, Effect, Random } from "effect";
|
||||
import { Clock, Config, Context, DateTime, Duration, Effect, Random } from "effect";
|
||||
import * as S from "effect/Schema";
|
||||
import { makeCollectionManager } from "./collection-manager.js";
|
||||
import {
|
||||
|
|
@ -139,7 +139,7 @@ export type LibrarianService = AsyncProcessorRuntime & Record<string, any>;
|
|||
|
||||
export function makeLibrarianService(config: LibrarianServiceConfig): LibrarianService {
|
||||
const service = makeAsyncProcessor(config, {
|
||||
run: () => service.run(),
|
||||
run: () => service.run(Context.empty()),
|
||||
}) as LibrarianService;
|
||||
const baseStop = service.stop;
|
||||
service.documents = new Map<string, DocumentMetadata>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue