Skip to content

Commit

Permalink
feat(runner): adjust default goroutine to 50
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Sep 3, 2024
1 parent fc8885d commit 1ce1542
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Here are all the options it supports.
| -A, --auth `<USER>:<PASS>` | Set authorization for proxy server. |
| -d, --daemon | Daemonize proxy server. |
| -c, --check | To perform proxy live check. |
| -g, --goroutine `<N>` | Max. goroutine to use (default: 10). |
| -g, --goroutine `<N>` | Max. goroutine to use (default: 50). |
| --only-cc `<AA>,<BB>` | Only show specific country code (comma separated). |
| -t, --timeout | Max. time allowed for proxy server/check (default: 30s). |
| -r, --rotate `<AFTER>` | Rotate proxy IP for every `AFTER` request (default: 1). |
Expand Down
2 changes: 1 addition & 1 deletion common/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Options:
PROXY CHECKER
-c, --check Perform proxy check
-g, --goroutine <N> Max. goroutine to use (default: 10)
-g, --goroutine <N> Max. goroutine to use (default: 50)
--only-cc <AA>,<BB> Only for specific country code (comma separated)
IP ROTATOR
Expand Down
6 changes: 3 additions & 3 deletions internal/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"flag"
"time"

"github.com/projectdiscovery/gologger"
"github.com/kitabisa/mubeng/common"
"github.com/kitabisa/mubeng/internal/updater"
"github.com/projectdiscovery/gologger"
)

// Options defines the values needed to execute the Runner.
Expand Down Expand Up @@ -57,8 +57,8 @@ func Options() *common.Options {
flag.BoolVar(&opt.Watch, "w", false, "")
flag.BoolVar(&opt.Watch, "watch", false, "")

flag.IntVar(&opt.Goroutine, "g", 10, "")
flag.IntVar(&opt.Goroutine, "goroutine", 10, "")
flag.IntVar(&opt.Goroutine, "g", 50, "")
flag.IntVar(&opt.Goroutine, "goroutine", 50, "")

flag.Usage = func() {
showBanner()
Expand Down

0 comments on commit 1ce1542

Please sign in to comment.