summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-26 11:57:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-26 11:57:55 +0900
commitf623f8d538cd0ce9b31a97248ac862bb1c8b8b7c (patch)
treed8fd8c23792c0248583836f38b6d0dc1eefb5028 /server/grpc_server.go
parent9b1dac34bb22f159babf352bf43d7e3ffdf157e5 (diff)
move gRPC-related code for REQ_STOP_SERVER to grpc_server.go
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index 61a80f77..8ad5c3c8 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -1740,11 +1740,7 @@ func (s *Server) StartServer(ctx context.Context, arg *api.StartServerRequest) (
}
func (s *Server) StopServer(ctx context.Context, arg *api.StopServerRequest) (*api.StopServerResponse, error) {
- d, err := s.get(REQ_STOP_SERVER, arg)
- if err != nil {
- return nil, err
- }
- return d.(*api.StopServerResponse), err
+ return &api.StopServerResponse{}, s.bgpServer.Stop()
}
type GrpcRequest struct {