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

Commit 9ee2180

Browse files
committed
Refactor to remove unused parameter
1 parent 806a563 commit 9ee2180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/web_relay_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ func (wrm *WebRelayManager) SendRelayMessage(ciphertext string, recipient string
187187
log.Debugf("Sending encrypted relay message: %s", string(outgoing))
188188

189189
// Transmit the encrypted message to the webrelay
190-
wrm.authToWebRelay(wrm.webrelays[0], outgoing)
190+
wrm.authToWebRelay(outgoing)
191191
}
192192

193-
func (wrm *WebRelayManager) authToWebRelay(server string, msg []byte) {
193+
func (wrm *WebRelayManager) authToWebRelay(msg []byte) {
194194
for _, conn := range wrm.connections {
195195
if conn != nil {
196196
err := conn.WriteMessage(websocket.TextMessage, msg)

0 commit comments

Comments
 (0)