From 357746e84303da4a6dfdcb813c78655f7d7121be Mon Sep 17 00:00:00 2001 From: Romain Thouvenin Date: Thu, 14 Mar 2024 16:47:54 +0100 Subject: [PATCH] Rename geocoder service to geography --- src/app.constants.ts | 2 +- src/config/producer-services.config.ts | 2 +- src/modules/ad/infrastructure/georouter.proto | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.constants.ts b/src/app.constants.ts index 990204b..d64baf7 100644 --- a/src/app.constants.ts +++ b/src/app.constants.ts @@ -3,7 +3,7 @@ export const SERVICE_NAME = 'matcher'; // grpc export const GRPC_PACKAGE_NAME = 'matcher'; -export const GRPC_GEOGRAPHY_PACKAGE_NAME = 'geocoder'; +export const GRPC_GEOGRAPHY_PACKAGE_NAME = 'geography'; export const GRPC_GEOROUTER_SERVICE_NAME = 'GeorouterService'; // messaging output diff --git a/src/config/producer-services.config.ts b/src/config/producer-services.config.ts index 9867503..bb6d896 100644 --- a/src/config/producer-services.config.ts +++ b/src/config/producer-services.config.ts @@ -1,7 +1,7 @@ import { registerAs } from '@nestjs/config'; export default registerAs('producerServices', () => ({ - geographyUrl: process.env.GEOGRAPHY_SERVICE_URL ?? 'v3-geocoder-api', + geographyUrl: process.env.GEOGRAPHY_SERVICE_URL ?? 'v3-geography-api', geographyPort: process.env.GEOGRAPHY_SERVICE_PORT ? parseInt(process.env.GEOGRAPHY_SERVICE_PORT, 10) : 5007, diff --git a/src/modules/ad/infrastructure/georouter.proto b/src/modules/ad/infrastructure/georouter.proto index 1b13653..965289d 100644 --- a/src/modules/ad/infrastructure/georouter.proto +++ b/src/modules/ad/infrastructure/georouter.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package geocoder; +package geography; service GeorouterService { rpc GetRoute(RouteRequest) returns (Route);