Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
remove unneeded handleReserve function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jul 6, 2021
1 parent 9da0b93 commit c42f8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (r *Relay) handleStream(s network.Stream) {

switch msg.GetType() {
case pbv2.HopMessage_RESERVE:
r.handleReserve(s, &msg)
r.handleReserve(s)

case pbv2.HopMessage_CONNECT:
r.handleConnect(s, &msg)
Expand All @@ -130,7 +130,7 @@ func (r *Relay) handleStream(s network.Stream) {
}
}

func (r *Relay) handleReserve(s network.Stream, msg *pbv2.HopMessage) {
func (r *Relay) handleReserve(s network.Stream) {
defer s.Close()

p := s.Conn().RemotePeer()
Expand Down

0 comments on commit c42f8b6

Please sign in to comment.