mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 17:39:39 +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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue