This commit is contained in:
poiuty 2023-06-27 15:03:48 +03:00
parent 0c18a2d2f1
commit a8342b4f3c

View file

@ -1,6 +1,7 @@
package main package main
import ( import (
"encoding/base64"
"fmt" "fmt"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"net/http" "net/http"
@ -8,7 +9,6 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
"encoding/base64"
) )
var uptime = time.Now().Unix() var uptime = time.Now().Unix()
@ -164,7 +164,6 @@ func xWorker(workerData Info) {
rooms.Del <- workerData.room rooms.Del <- workerData.room
}() }()
if len(workerData.Key) < 50 { if len(workerData.Key) < 50 {
fmt.Println(workerData.Key, workerData.room) fmt.Println(workerData.Key, workerData.room)
return return
@ -246,7 +245,6 @@ func xWorker(workerData Info) {
return return
} }
messageID := getMessageID(string(message)) messageID := getMessageID(string(message))
if messageID == 28 && strings.Contains(string(message), "offline") { if messageID == 28 && strings.Contains(string(message), "offline") {