Skip to content

Commit

Permalink
Fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Aug 18, 2019
1 parent 717916d commit e0dbf0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/router/route_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ func (rm *routeManager) RemoveLoopRule(loop routing.Loop) error {
return nil
}

func (rm *routeManager) Serve(rw io.ReadWriter) error {
proto := setup.NewSetupProtocol(rw)
func (rm *routeManager) Serve(rwc io.ReadWriteCloser) error {
proto := setup.NewSetupProtocol(rwc)
t, body, err := proto.ReadPacket()

if err != nil {
Expand Down

0 comments on commit e0dbf0d

Please sign in to comment.