Skip to content

Commit

Permalink
fix: adapt proto
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigBalthazar committed Dec 12, 2024
1 parent ef2c254 commit 463f935
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions src/modules/config/controllers/config-grpc.controller.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Controller } from '@nestjs/common';

import type { getConfigResponse } from '../../../../src/modules/grpc/gen/ts/kraken';
import { KrakenConfigServiceControllerMethods } from '../../../../src/modules/grpc/gen/ts/kraken';
import { ConfigControllerMethods } from '../../../../src/modules/grpc/gen/ts/kraken';
import { ConfigService } from '../config.service';

@Controller()
@KrakenConfigServiceControllerMethods()
export class ConfigGrpcController {
@ConfigControllerMethods()
export class ConfigGrpcController implements ConfigGrpcController {
constructor(private readonly configService: ConfigService) {}

async getConfig(): Promise<getConfigResponse> {
Expand Down
36 changes: 18 additions & 18 deletions src/modules/grpc/gen/ts/kraken.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/modules/log/controllers/log-grpc.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { Controller } from '@nestjs/common';

import ServiceRegistryService from '../../../../src/modules/service-registry/services/service-registry.service';
import { ApiConfigService } from '../../../shared/services/api-config.service';
import type { addLogRequest, addLogResponse, KrakenLogServiceController } from '../../grpc/gen/ts/kraken';
import { KrakenLogServiceControllerMethods } from '../../grpc/gen/ts/kraken';
import type { addLogRequest, addLogResponse, LogController } from '../../grpc/gen/ts/kraken';
import { LogControllerMethods } from '../../grpc/gen/ts/kraken';
import { LogService } from '../log.service';

@Controller()
@KrakenLogServiceControllerMethods()
export class LogGrpcController implements KrakenLogServiceController {
@LogControllerMethods()
export class LogGrpcController implements LogController {
constructor(
private readonly logService: LogService,
private readonly apiConfig: ApiConfigService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { Controller } from '@nestjs/common';

import { ApiConfigService } from '../../../../src/shared/services/api-config.service';
import type { registerServiceRequest, registerServiceResponse } from '../../grpc/gen/ts/kraken';
import { KrakenServiceRegistryServiceControllerMethods, ServiceTypeEnum } from '../../grpc/gen/ts/kraken';
import { ServiceRegistryControllerMethods, ServiceTypeEnum } from '../../grpc/gen/ts/kraken';
import { ServiceType } from '../enums/service-types.enum';
import ServiceRegistryService from '../services/service-registry.service';

@Controller()
@KrakenServiceRegistryServiceControllerMethods()
export class ServiceRegistryGrpcController {
@ServiceRegistryControllerMethods()
export class ServiceRegistryGrpcController implements ServiceRegistryGrpcController {
constructor(
private readonly serviceRegistryService: ServiceRegistryService,
private readonly apiConfig: ApiConfigService,
Expand Down

0 comments on commit 463f935

Please sign in to comment.