Преглед изворни кода

fix: inc max timeout to 240s

Yeuoly пре 10 месеци
родитељ
комит
e319a43294
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      internal/service/endpoint.go

+ 1 - 1
internal/service/endpoint.go

@@ -150,7 +150,7 @@ func Endpoint(
 	select {
 	case <-ctx.Writer.CloseNotify():
 	case <-done:
-	case <-time.After(30 * time.Second):
+	case <-time.After(240 * time.Second):
 		ctx.JSON(500, gin.H{"error": "killed by timeout"})
 	}
 }