diff options
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r-- | api/grpc_server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go index 4567f715..a359f761 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -49,13 +49,13 @@ func NewGrpcServer(b *server.BgpServer, hosts string) *Server { func NewServer(b *server.BgpServer, g *grpc.Server, hosts string) *Server { grpc.EnableTracing = false - server := &Server{ + s := &Server{ bgpServer: b, grpcServer: g, hosts: hosts, } - RegisterGobgpApiServer(g, server) - return server + RegisterGobgpApiServer(g, s) + return s } func (s *Server) Serve() error { |