Merge pull request #548 from narumiruna/remove-duplicate-service-registration

grpc: remove duplicate service registration
This commit is contained in:
Yo-An Lin 2022-04-20 15:18:50 +08:00 committed by GitHub
commit 193e2ce511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {