remove duplicate logging
This commit is contained in:
parent
c348049209
commit
d975034680
2 changed files with 1 additions and 2 deletions
|
@ -31,8 +31,6 @@ func SendPermanentBroadCastMessage() {
|
|||
if time.Now().Sub(client.LastPong) > (10 * time.Second) {
|
||||
// Remove unresponsive client
|
||||
client.Conn.Close()
|
||||
delete(Clients, client.Conn.LocalAddr())
|
||||
helper.Logger.Info("Client timed out", "lastPong", client.LastPong, "host", client.RealIP, "clients", len(Clients))
|
||||
}
|
||||
}
|
||||
<-tick.C
|
||||
|
|
|
@ -5,6 +5,7 @@ import (
|
|||
"net"
|
||||
"net/http"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.smsvc.net/pomodoro/GoTomato/internal/helper"
|
||||
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
||||
|
|
Loading…
Reference in a new issue