From 45b3b258c1a44d9e2cd62a3a8a736ff02d56869a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Tue, 29 Apr 2025 17:03:12 +0200 Subject: [PATCH] remoove context timeout --- server/models/clients.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/models/clients.go b/server/models/clients.go index 5ca78b8..1737064 100644 --- a/server/models/clients.go +++ b/server/models/clients.go @@ -3,7 +3,6 @@ package models import ( "context" "fmt" - "time" "github.com/coder/websocket" "github.com/gin-gonic/gin" @@ -37,7 +36,7 @@ func (cl *Clients) ConnectRecievingWsConnection(id string, c *gin.Context) error if err != nil { return fmt.Errorf("error accept websocket client: %s", err) } - ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute) + ctx, cancel := context.WithCancel(context.Background()) (*cl)[id] = &Client{ Connected: true,