diff --git a/controller/src/server/managers/communication_manager.ts b/controller/src/server/managers/communication_manager.ts index a38429a..305d08f 100644 --- a/controller/src/server/managers/communication_manager.ts +++ b/controller/src/server/managers/communication_manager.ts @@ -374,7 +374,10 @@ export class CommunicationManager { * and triggers global recalculation/emission. * @param payload - The event payload containing processId and the single ModelUsage increment. */ - public async handleModelUsage(processId: string, event: CostUpdateEvent): Promise { + public async handleModelUsage( + processId: string, + event: CostUpdateEvent + ): Promise { // Extract usage data from the event object const { usage } = event; // Get usage from the event parameter @@ -507,7 +510,9 @@ export class CommunicationManager { this.processManager.io.emit('cost:info', emitPayload); // Check cost limit and emit warnings if needed - await this.checkCostLimitAndNotify(aggregatedGlobalUsage.cost.total); + await this.checkCostLimitAndNotify( + aggregatedGlobalUsage.cost.total + ); } catch (error) { console.error( 'Error recalculating and emitting global state:',