remoove context timeout

This commit is contained in:
Adrian Zürcher
2025-04-29 17:03:12 +02:00
parent a0fe455bce
commit 45b3b258c1

View File

@@ -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,