Fix up live chat
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m26s

This commit is contained in:
2026-03-05 19:14:05 +00:00
parent 3056b23b50
commit 95635c86b3
5 changed files with 25 additions and 15 deletions

View File

@@ -15,7 +15,7 @@ import (
func main() {
logsDir := "/backend/logs"
logFile, err := os.OpenFile(logsDir+"/go.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
logFile, err := os.OpenFile(logsDir+"/go.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o644)
if err != nil {
panic(err)
}

View File

@@ -1,6 +1,7 @@
package services
import (
"net/http"
"sync"
"time"
@@ -12,6 +13,9 @@ import (
var Upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return true
},
}
var (