make flameresolver timeout shorter
All checks were successful
Build and publish the docker image / build (push) Successful in 57s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-05-02 17:37:54 +03:00
parent ef63d59931
commit 801ec1badc
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# [ngn.tf] | AnonymousOverflow # AnonymousOverflow | frontend for stackoverflow.com
![](https://git.ngn.tf/ngn/anonymous_overflow/actions/workflows/build.yml/badge.svg) ![](https://git.ngn.tf/ngn/anonymous_overflow/actions/workflows/build.yml/badge.svg)

View File

@ -46,7 +46,7 @@ func GET(target string) ([]byte, int, http.Header, error) {
SetBody(request{ SetBody(request{
Cmd: "request.get", Cmd: "request.get",
Url: target, Url: target,
MaxTimeout: 60000, MaxTimeout: 15000,
}). }).
SetResult(&response{}). SetResult(&response{}).
Post(frurl) Post(frurl)
@ -56,7 +56,6 @@ func GET(target string) ([]byte, int, http.Header, error) {
} }
if res.StatusCode() != 200 { if res.StatusCode() != 200 {
fmt.Printf("flareresolver request to %s failed: %d (%s)\n", target, res.StatusCode(), frurl)
return nil, 0, nil, fmt.Errorf("flareresolver failure") return nil, 0, nil, fmt.Errorf("flareresolver failure")
} }