mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-18 18:39:43 +00:00
🔨 remove debug prints
This commit is contained in:
parent
8539acf5c9
commit
515f00d478
@ -233,7 +233,7 @@ func sendRequest(
|
||||
return
|
||||
}
|
||||
defer fasthttp.ReleaseResponse(response)
|
||||
fmt.Println(string(response.Body()))
|
||||
|
||||
*responseData = append(*responseData, Response{
|
||||
StatusCode: response.StatusCode(),
|
||||
Error: nil,
|
||||
@ -417,7 +417,6 @@ func findActiveProxyClients(
|
||||
}
|
||||
defer client.CloseIdleConnections()
|
||||
|
||||
startTime := time.Now()
|
||||
ch := make(chan error)
|
||||
go func() {
|
||||
err := client.DoTimeout(request, response, timeout)
|
||||
@ -426,18 +425,14 @@ func findActiveProxyClients(
|
||||
select {
|
||||
case err := <-ch:
|
||||
if err != nil {
|
||||
fmt.Println(time.Since(startTime))
|
||||
return
|
||||
}
|
||||
break
|
||||
case <-time.After(timeout):
|
||||
fmt.Println(time.Since(startTime))
|
||||
return
|
||||
case <-ctx.Done():
|
||||
fmt.Println(time.Since(startTime))
|
||||
return
|
||||
}
|
||||
fmt.Println(time.Since(startTime))
|
||||
|
||||
isTLS := URL.Scheme == "https"
|
||||
addr := URL.Host
|
||||
|
Loading…
x
Reference in New Issue
Block a user