Skip to content

Commit e4bfa76

Browse files
authored
Merge pull request #57 from systemli/Remove-unused-parameter
🔥 Remove unused parameter
2 parents 13148d8 + f949028 commit e4bfa76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func StartSocketmapServer(ctx context.Context, wg *sync.WaitGroup, addr string,
6969
activeConnWg.Add(1)
7070
activeConnections.Inc()
7171
connectionPoolUsage.Set(float64(len(connSemaphore)))
72-
go handleSocketmapConnection(conn, adapter, connSemaphore, &activeConnWg, addr)
72+
go handleSocketmapConnection(conn, adapter, connSemaphore, &activeConnWg)
7373
default:
7474
// Connection pool full, reject connection
7575
log.WithField("addr", addr).Warn("Connection pool full, rejecting socketmap connection")
@@ -78,7 +78,7 @@ func StartSocketmapServer(ctx context.Context, wg *sync.WaitGroup, addr string,
7878
}
7979
}
8080

81-
func handleSocketmapConnection(conn net.Conn, adapter *SocketmapAdapter, semaphore chan struct{}, wg *sync.WaitGroup, addr string) {
81+
func handleSocketmapConnection(conn net.Conn, adapter *SocketmapAdapter, semaphore chan struct{}, wg *sync.WaitGroup) {
8282
defer func() {
8383
_ = conn.Close()
8484
<-semaphore // Release connection slot

0 commit comments

Comments
 (0)