Do not verify if fresh link

This commit is contained in:
Ben Adrian Sarmiento
2024-08-26 10:22:37 +02:00
parent 78be877efe
commit 83d928a540
2 changed files with 4 additions and 21 deletions

View File

@@ -337,10 +337,6 @@ func (r *HTTPClient) VerifyLink(link string) error {
if err != nil {
return err
}
timeout := time.Duration(r.timeoutSecs) * time.Second
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
req = req.WithContext(ctx)
resp, err := r.Do(req)
if err != nil {
return err