mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
grpc: register trading service to grpc
This commit is contained in:
parent
cb51352d58
commit
d78370e355
|
@ -333,6 +333,12 @@ 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,
|
||||||
|
})
|
||||||
|
|
||||||
pb.RegisterUserDataServiceServer(grpcServer, &UserDataService{
|
pb.RegisterUserDataServiceServer(grpcServer, &UserDataService{
|
||||||
Config: s.Config,
|
Config: s.Config,
|
||||||
Environ: s.Environ,
|
Environ: s.Environ,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user