mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-20 20:47:05 +02:00
code fmt change.
This commit is contained in:
parent
00fc3afcd7
commit
d7671942a6
10 changed files with 54 additions and 52 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue