grpc: register trading service to grpc

This commit is contained in:
c9s 2022-04-16 23:57:53 +08:00
parent cb51352d58
commit d78370e355

View File

@ -333,6 +333,12 @@ func (s *Server) ListenAndServe(bind string) error {
Trader: s.Trader,
})
pb.RegisterTradingServiceServer(grpcServer, &TradingService{
Config: s.Config,
Environ: s.Environ,
Trader: s.Trader,
})
pb.RegisterUserDataServiceServer(grpcServer, &UserDataService{
Config: s.Config,
Environ: s.Environ,