Do not verify if fresh link
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user