mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-24 14:37:05 +02:00
go fmt.
This commit is contained in:
parent
dfe8b8b57d
commit
ee13e40d4c
16 changed files with 135 additions and 103 deletions
|
@ -101,9 +101,9 @@ type WebSocketHandler struct {
|
|||
}
|
||||
|
||||
func (ws *WebSocketHandler) Start() {
|
||||
go func () {
|
||||
go func() {
|
||||
for {
|
||||
channelMessage := <- ws.sessions.GetSessionChannel()
|
||||
channelMessage := <-ws.sessions.GetSessionChannel()
|
||||
|
||||
switch channelMessage.Type {
|
||||
case "created":
|
||||
|
@ -189,7 +189,7 @@ func (ws *WebSocketHandler) Start() {
|
|||
|
||||
go func() {
|
||||
for {
|
||||
_ = <- ws.desktop.GetClipboardUpdatedChannel()
|
||||
_ = <-ws.desktop.GetClipboardUpdatedChannel()
|
||||
session, ok := ws.sessions.GetHost()
|
||||
if !ok {
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue