From 2754d2410cb14b545339079acf5a38cdd16e6f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=82=8B=E3=81=BF?= Date: Wed, 20 Apr 2022 13:48:41 +0800 Subject: [PATCH] grpc: remove duplicate service registration --- pkg/grpc/server.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/grpc/server.go b/pkg/grpc/server.go index 8dfed8388..ad6df8799 100644 --- a/pkg/grpc/server.go +++ b/pkg/grpc/server.go @@ -345,12 +345,6 @@ func (s *Server) ListenAndServe(bind string) error { Trader: s.Trader, }) - pb.RegisterTradingServiceServer(grpcServer, &TradingService{ - Config: s.Config, - Environ: s.Environ, - Trader: s.Trader, - }) - reflection.Register(grpcServer) if err := grpcServer.Serve(conn); err != nil {