🔨 Remove unused imports in config and custom_errors packages

This commit is contained in:
Aykhan Shahsuvarov 2024-05-25 20:29:48 +04:00
parent 7a2558b25a
commit b9c64a3851
3 changed files with 0 additions and 5 deletions

View File

@ -5,7 +5,6 @@ import (
"os" "os"
"time" "time"
// "github.com/aykhans/dodo/utils"
"github.com/jedib0t/go-pretty/v6/table" "github.com/jedib0t/go-pretty/v6/table"
) )

View File

@ -6,7 +6,6 @@ import (
"net/url" "net/url"
"strings" "strings"
// "github.com/aykhans/dodo/config"
"github.com/aykhans/dodo/config" "github.com/aykhans/dodo/config"
"github.com/go-playground/validator/v10" "github.com/go-playground/validator/v10"
) )

View File

@ -179,7 +179,6 @@ func sendRequest(
params, params,
getBodyReader(body), getBodyReader(body),
) )
// req.Header.Set("User-Agent", config)
req.Header = headers req.Header = headers
setCookies(req, cookies) setCookies(req, cookies)
client := getClient() client := getClient()
@ -256,10 +255,8 @@ func printProgress(wg *sync.WaitGroup, total int, message string, countSlice *[]
for { for {
totalCount := 0 totalCount := 0
for _, count := range *countSlice { for _, count := range *countSlice {
// println(count)
totalCount += count totalCount += count
} }
// println(totalCount)
dodosTracker.SetValue(int64(totalCount)) dodosTracker.SetValue(int64(totalCount))
if totalCount == total { if totalCount == total {
break break