mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
fix: make abstract class constructors protected
Marks FlowProcessor and EmbeddingsService constructors as protected since these classes should only be instantiated via subclasses. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
25d4227cb5
commit
8f9de7604e
3 changed files with 5 additions and 2 deletions
|
|
@ -23,7 +23,7 @@ export abstract class FlowProcessor extends AsyncProcessor {
|
|||
private flows = new Map<string, Flow>();
|
||||
private configConsumer: BackendConsumer<ConfigPush> | null = null;
|
||||
|
||||
constructor(config: ProcessorConfig) {
|
||||
protected constructor(config: ProcessorConfig) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import type { FlowContext } from "../messaging/consumer.js";
|
|||
import type { EmbeddingsRequest, EmbeddingsResponse } from "../schema/messages.js";
|
||||
|
||||
export abstract class EmbeddingsService extends FlowProcessor {
|
||||
constructor(config: ProcessorConfig) {
|
||||
protected constructor(config: ProcessorConfig) {
|
||||
super(config);
|
||||
|
||||
this.registerSpecification(
|
||||
|
|
|
|||
3
ts/pnpm-lock.yaml
generated
3
ts/pnpm-lock.yaml
generated
|
|
@ -8,6 +8,9 @@ importers:
|
|||
|
||||
.:
|
||||
devDependencies:
|
||||
nats:
|
||||
specifier: ^2.29.0
|
||||
version: 2.29.3
|
||||
tsx:
|
||||
specifier: ^4.21.0
|
||||
version: 4.21.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue