File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
cubejs-query-orchestrator/src/orchestrator
cubejs-server-core/src/core Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11export class BaseQueueEventsBus {
22 protected readonly subscribers : Record < string , any > = { } ;
33
4- public subscribe ( id , callback ) {
4+ public subscribe ( id : string , callback ) {
55 this . subscribers [ id ] = { id, callback } ;
66 }
77
8- public unsubscribe ( id ) {
8+ public unsubscribe ( id : string ) {
99 delete this . subscribers [ id ] ;
1010 }
1111}
Original file line number Diff line number Diff line change @@ -448,11 +448,11 @@ export class QueryOrchestrator {
448448 return this . preAggregations . cancelQueriesFromQueue ( queryKeys , dataSource ) ;
449449 }
450450
451- public async subscribeQueueEvents ( id , callback ) {
451+ public async subscribeQueueEvents ( id : string , callback ) {
452452 return this . getQueueEventsBus ( ) . subscribe ( id , callback ) ;
453453 }
454454
455- public async unSubscribeQueueEvents ( id ) {
455+ public async unSubscribeQueueEvents ( id : string ) {
456456 return this . getQueueEventsBus ( ) . unsubscribe ( id ) ;
457457 }
458458
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ export class OrchestratorApi {
174174 }
175175
176176 /**
177- * Tests worker's connections to the Cubstore and, if not in the rollup only
177+ * Tests worker's connections to the Cubestore and, if not in the rollup only
178178 * mode, to the datasources.
179179 */
180180 public async testConnection ( ) {
@@ -274,11 +274,11 @@ export class OrchestratorApi {
274274 return this . orchestrator . cancelPreAggregationQueriesFromQueue ( queryKeys , dataSource ) ;
275275 }
276276
277- public async subscribeQueueEvents ( id , callback ) {
277+ public async subscribeQueueEvents ( id : string , callback ) {
278278 return this . orchestrator . subscribeQueueEvents ( id , callback ) ;
279279 }
280280
281- public async unSubscribeQueueEvents ( id ) {
281+ public async unSubscribeQueueEvents ( id : string ) {
282282 return this . orchestrator . unSubscribeQueueEvents ( id ) ;
283283 }
284284
You can’t perform that action at this time.
0 commit comments