From b9c64a385129b7b9dd159d9180f51695c718f6b4 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Sat, 25 May 2024 20:29:48 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Remove=20unused=20imports=20in?= =?UTF-8?q?=20config=20and=20custom=5Ferrors=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 1 - custom_errors/formaters.go | 1 - requests/requests.go | 3 --- 3 files changed, 5 deletions(-) diff --git a/config/config.go b/config/config.go index b53c5fd..ed492a5 100644 --- a/config/config.go +++ b/config/config.go @@ -5,7 +5,6 @@ import ( "os" "time" - // "github.com/aykhans/dodo/utils" "github.com/jedib0t/go-pretty/v6/table" ) diff --git a/custom_errors/formaters.go b/custom_errors/formaters.go index 2050656..df383c5 100644 --- a/custom_errors/formaters.go +++ b/custom_errors/formaters.go @@ -6,7 +6,6 @@ import ( "net/url" "strings" - // "github.com/aykhans/dodo/config" "github.com/aykhans/dodo/config" "github.com/go-playground/validator/v10" ) diff --git a/requests/requests.go b/requests/requests.go index 1ca6c82..9f82f72 100644 --- a/requests/requests.go +++ b/requests/requests.go @@ -179,7 +179,6 @@ func sendRequest( params, getBodyReader(body), ) - // req.Header.Set("User-Agent", config) req.Header = headers setCookies(req, cookies) client := getClient() @@ -256,10 +255,8 @@ func printProgress(wg *sync.WaitGroup, total int, message string, countSlice *[] for { totalCount := 0 for _, count := range *countSlice { - // println(count) totalCount += count } - // println(totalCount) dodosTracker.SetValue(int64(totalCount)) if totalCount == total { break