remoove context timeout
This commit is contained in:
@@ -3,7 +3,6 @@ package models
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/coder/websocket"
|
"github.com/coder/websocket"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
@@ -37,7 +36,7 @@ func (cl *Clients) ConnectRecievingWsConnection(id string, c *gin.Context) error
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error accept websocket client: %s", err)
|
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{
|
(*cl)[id] = &Client{
|
||||||
Connected: true,
|
Connected: true,
|
||||||
|
Reference in New Issue
Block a user