From d49a1cb23b3bb4784e26f941e7cab79b5efe7f1e Mon Sep 17 00:00:00 2001 From: ginuerzh Date: Sun, 19 Nov 2023 16:43:31 +0800 Subject: [PATCH] fix router example --- router/example/main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/router/example/main.go b/router/example/main.go index 1ccc7af..9c0e382 100644 --- a/router/example/main.go +++ b/router/example/main.go @@ -25,12 +25,6 @@ func (s *server) GetRoute(ctx context.Context, in *proto.GetRouteRequest) (*prot return reply, nil } -func (s *server) SetRoute(ctx context.Context, in *proto.SetRouteRequest) (*proto.SetRouteReply, error) { - reply := &proto.SetRouteReply{} - log.Printf("router set: %s -> %s", in.GetNet(), in.GetGateway()) - return reply, nil -} - func main() { flag.Parse() lis, err := net.Listen("tcp", fmt.Sprintf(":%d", *port))