From 60c9ba9ec0631a835cbddf65864c2d6b5868f618 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sat, 21 Sep 2024 07:48:08 +0800 Subject: [PATCH] use load balancer for service discovery --- rpc/timeline_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/timeline_service.py b/rpc/timeline_service.py index 051fcb9..3efabb3 100644 --- a/rpc/timeline_service.py +++ b/rpc/timeline_service.py @@ -40,8 +40,8 @@ def __init__(self): self.SessionMaker = sa.sync_session_maker() def Hello(self, request: HelloRequest, context) -> HelloResponse: - logger.info(f"{config.node_id} rpc hello {request.name}") - return HelloResponse(message=f"{config.node_id}: hello {request.name}") + logger.info(f"rpc hello from {request.name}") + return HelloResponse(message=f"hello from {request.name}") def SubjectCollect( self, req: SubjectCollectRequest, context: RpcContext