mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
Merge pull request #548 from narumiruna/remove-duplicate-service-registration
grpc: remove duplicate service registration
This commit is contained in:
commit
193e2ce511
|
@ -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