mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grpc: remove duplicate service registration
This commit is contained in:
parent
82bdfa7db8
commit
2754d2410c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user