Skip to content

Commit 78ef2cf

Browse files
Heer Ambaviheerambavi1998
authored andcommitted
minor fixes
1 parent 18b8ca1 commit 78ef2cf

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎packages/trueforge/src/controller.ts‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/**
2-
* Wires the control loops this deployment runs.
3-
*
4-
* {@link createController} is for a process that already has a drain of its own
5-
* (the standalone server). {@link runController} is for a process whose only job
6-
* is the loops — start them, then stop on SIGTERM/SIGINT.
7-
*
8-
* This module is not a process entry point.
9-
*/
101
import { TrueForge } from '@truefoundry/trueforge-sdk';
112
import type { Logger } from 'winston';
123
import { Controller } from './controller/Controller';
@@ -15,8 +6,7 @@ import type { IScheduleStore } from './db/scheduleStore';
156
import type { WithTransaction } from './db/transaction';
167

178
/**
18-
* The loops this deployment runs. Identical in both modes — only the process that owns
19-
* the returned controller differs, so starting and stopping is left to the caller.
9+
* The loops the controller runs.
2010
*/
2111
export function createController<TTransaction>(params: {
2212
scheduleStore: IScheduleStore<TTransaction>;

‎packages/trueforge/src/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ try {
345345

346346
const server = serve({ fetch: app.fetch, port: configuration.PORT, hostname: configuration.HOST }, info => {
347347
logger.info(`Agent server listening on http://${configuration.HOST}:${String(info.port)} (docs at /api/v1/docs)`);
348-
// Started here, not at construction: the loops call this server over HTTP.
348+
// The controller calls this server over HTTP.
349349
controller?.start();
350350
});
351351

0 commit comments

Comments
 (0)