소스 검색

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