From 067f55a7d3bb2f4b7ac21d1f0066b7fd66f960cd Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Sat, 14 Sep 2019 16:49:49 +0300 Subject: [PATCH] Cleanup --- pkg/router/router.go | 2 -- pkg/setup/protocol.go | 9 +++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/router/router.go b/pkg/router/router.go index 6e38b982e2..f6e240f108 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -321,8 +321,6 @@ func (r *Router) GetRule(routeID routing.RouteID) (routing.Rule, error) { // ServeApp handles App packets from the App connection on provided port. func (r *Router) ServeApp(conn net.Conn, port routing.Port, appConf *app.Config) error { - fmt.Println("!!! [ServeApp] start !!!") - r.wg.Add(1) defer r.wg.Done() diff --git a/pkg/setup/protocol.go b/pkg/setup/protocol.go index 8421406d97..2c5f391dda 100644 --- a/pkg/setup/protocol.go +++ b/pkg/setup/protocol.go @@ -29,12 +29,13 @@ func (sp PacketType) String() string { return "CloseLoop" case PacketLoopClosed: return "OnLoopClosed" - case RespSuccess: - return "Success" - case RespFailure: - return "Failure" case PacketRequestRouteID: return "RequestRouteIDs" + + case RespFailure: + return "Failure" + case RespSuccess: + return "Success" } return fmt.Sprintf("Unknown(%d)", sp) }