mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-20 11:11:26 +00:00
🔨 Remove unused imports in config and custom_errors packages
This commit is contained in:
parent
7a2558b25a
commit
b9c64a3851
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user