code fmt change.

This commit is contained in:
Miroslav Šedivý 2021-09-02 21:37:24 +02:00
parent 00fc3afcd7
commit d7671942a6
10 changed files with 54 additions and 52 deletions

View file

@ -15,6 +15,9 @@ import (
"demodesk/neko/internal/websocket/handler"
)
// send pings to peer with this period - must be less than pongWait
const pingPeriod = 10 * time.Second
func New(
sessions types.SessionManager,
desktop types.DesktopManager,
@ -32,9 +35,6 @@ func New(
}
}
// Send pings to peer with this period. Must be less than pongWait.
const pingPeriod = 10 * time.Second
type WebSocketManagerCtx struct {
logger zerolog.Logger
sessions types.SessionManager