Переглянути джерело

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"})
 	}
 }