This commit is contained in:
poiuty 2022-08-12 20:22:29 +03:00
parent b080cea2df
commit 0bf88963c3
2 changed files with 54 additions and 40 deletions

View file

@ -127,6 +127,11 @@ func xWorker(workerData Info, u url.URL) {
now := time.Now().Unix()
if now > workerData.Start+60*60*8 {
fmt.Println("too_long exit:", workerData.room)
return
}
m := string(message)
slog <- saveLog{Rid: workerData.Rid, Now: now, Mes: m}