From d78370e3554a42fa0bff9f17c80adf67e7f989c5 Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 16 Apr 2022 23:57:53 +0800 Subject: [PATCH] grpc: register trading service to grpc --- pkg/grpc/server.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/grpc/server.go b/pkg/grpc/server.go index fd9632aa7..ad6df8799 100644 --- a/pkg/grpc/server.go +++ b/pkg/grpc/server.go @@ -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,