Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Refactor unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmabc committed Nov 9, 2019
1 parent f8d18ae commit d23d3b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/web_relay_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (wrm *WebRelayManager) connectToServer(relay string, sender string) (*webso
if err != nil {
log.Debugf("Connection to relay has an error: %s", err)
log.Debugf("Attempting to reconnect to the relay...")
wrm.reconnectToRelay(relay, sender)
wrm.reconnectToRelay(relay)
break
}

Expand Down Expand Up @@ -165,12 +165,12 @@ func (wrm *WebRelayManager) connectToServer(relay string, sender string) (*webso
return c, nil
}

func (wrm *WebRelayManager) reconnectToRelay(relay string, sender string) {
func (wrm *WebRelayManager) reconnectToRelay(relay string) {
conn, err := wrm.connectToServer(relay, wrm.peerID)
if err != nil {
log.Error("Could not connect to: %s", relay)
time.Sleep(10 * time.Second)
wrm.reconnectToRelay(relay, wrm.peerID)
wrm.reconnectToRelay(relay)
} else {
wrm.connections = append(wrm.connections, conn)
}
Expand Down

0 comments on commit d23d3b1

Please sign in to comment.