Sfoglia il codice sorgente

fix: inc max timeout to 240s

Yeuoly 10 mesi fa
parent
commit
e319a43294
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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"})
 	}
 }