From 82d1c5a8c8337b303d6f1215e3e4506a408b355e Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 22 Jul 2025 17:40:48 +0200 Subject: [PATCH] Remove timeout parameter --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 1e61d44..ccdd6ac 100644 --- a/main.go +++ b/main.go @@ -58,7 +58,7 @@ func (t *RateLimitedTransport) RoundTrip(req *http.Request) (*http.Response, err } return t.base.RoundTrip(req) } -func LimitedHttp(rps float64, burst int, timeout time.Duration) *http.Client { +func LimitedHttp(rps float64, burst int) *http.Client { baseTransport := &http.Transport{ MaxIdleConns: 100, MaxIdleConnsPerHost: 10, @@ -77,6 +77,6 @@ func LimitedHttp(rps float64, burst int, timeout time.Duration) *http.Client { // Return configured client return &http.Client{ Transport: transport, - Timeout: timeout, + Timeout: 10 * time.Second, } }