grpc: remove duplicate service registration

This commit is contained in:
なるみ 2022-04-20 13:48:41 +08:00
parent 82bdfa7db8
commit 2754d2410c

View File

@ -345,12 +345,6 @@ func (s *Server) ListenAndServe(bind string) error {
Trader: s.Trader, Trader: s.Trader,
}) })
pb.RegisterTradingServiceServer(grpcServer, &TradingService{
Config: s.Config,
Environ: s.Environ,
Trader: s.Trader,
})
reflection.Register(grpcServer) reflection.Register(grpcServer)
if err := grpcServer.Serve(conn); err != nil { if err := grpcServer.Serve(conn); err != nil {