This commit is contained in:
poiuty 2023-06-08 16:35:42 +03:00
parent a455784f47
commit 06f4b6c002
3 changed files with 45 additions and 54 deletions

View file

@ -3,7 +3,6 @@ package main
import (
"fmt"
"log"
"math/rand"
"net"
"net/http"
"os"
@ -45,8 +44,6 @@ var (
)
func main() {
rand.Seed(time.Now().UnixNano())
startConfig()
initMysql()
@ -122,10 +119,6 @@ func socketHandler() {
}
}
func randInt(min int, max int) int {
return min + rand.Intn(max-min)
}
func fastStart() {
defer func() {
go updateFileRooms()
@ -160,6 +153,6 @@ func fastStart() {
Tips: v.Tips,
}
startRoom(workerData)
time.Sleep(5 * time.Second)
time.Sleep(100 * time.Millisecond)
}
}