Skip to content

Commit

Permalink
chore(hermes,admin,router): routing proto gen leftovers cleanup (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
kon14 authored Jan 3, 2024
1 parent 2d7be12 commit c997490
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 234 deletions.
1 change: 0 additions & 1 deletion libraries/hermes/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,3 @@ export * from './interfaces';
export * from './types';
export * from './classes';
export * from './utils/GrpcConverter';
export * from './utils/ProtoGenerator';
95 changes: 0 additions & 95 deletions libraries/hermes/src/utils/ProtoGenerator.ts

This file was deleted.

4 changes: 1 addition & 3 deletions modules/router/src/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
ConduitRoutingController,
ConduitSocket,
grpcToConduitRoute,
ProtoGenerator,
ProxyRoute,
ProxyRouteT,
proxyToConduitRoute,
Expand All @@ -27,7 +26,7 @@ import {
import { isNaN } from 'lodash';
import AppConfigSchema, { Config } from './config';
import * as models from './models';
import { protoTemplate, getSwaggerMetadata } from './hermes';
import { getSwaggerMetadata } from './hermes';
import { runMigrations } from './migrations';
import SecurityModule from './security';
import { AdminHandlers } from './admin';
Expand Down Expand Up @@ -78,7 +77,6 @@ export default class ConduitDefaultRouter extends ManagedModule<Config> {
this.database = this.grpcSdk.databaseProvider!;
await this.registerSchemas();
await runMigrations(this.grpcSdk);
ProtoGenerator.getInstance(protoTemplate);
this._internalRouter = new ConduitRoutingController(
this.getHttpPort()!,
this.getSocketPort()!,
Expand Down
1 change: 0 additions & 1 deletion modules/router/src/hermes/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default as protoTemplate } from './protoTemplate';
export * from './swaggerMetadata';
65 changes: 0 additions & 65 deletions modules/router/src/hermes/protoTemplate.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/admin/src/hermes/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default as protoTemplate } from './protoTemplate';
export * from './swaggerMetadata';
65 changes: 0 additions & 65 deletions packages/admin/src/hermes/protoTemplate.ts

This file was deleted.

4 changes: 1 addition & 3 deletions packages/admin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import * as middleware from './middleware';
import * as adminRoutes from './routes';
import * as models from './models';
import { AdminMiddleware } from './models';
import { getSwaggerMetadata, protoTemplate } from './hermes';
import { getSwaggerMetadata } from './hermes';
import path from 'path';
import {
ConduitMiddleware,
Expand All @@ -33,7 +33,6 @@ import {
ConduitRoutingController,
ConduitSocket,
grpcToConduitRoute,
ProtoGenerator,
ProxyRoute,
ProxyRouteT,
proxyToConduitRoute,
Expand Down Expand Up @@ -84,7 +83,6 @@ export default class AdminModule extends IConduitAdmin {
) {
super(commons);
this.grpcSdk = grpcSdk;
ProtoGenerator.getInstance(protoTemplate);
this._router = new ConduitRoutingController(
this.getHttpPort()!,
this.getSocketPort()!,
Expand Down

0 comments on commit c997490

Please sign in to comment.