Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Sep 14, 2019
1 parent e842d62 commit 067f55a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
9 changes: 5 additions & 4 deletions pkg/setup/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 067f55a

Please sign in to comment.