mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Changed flag name from threads to concurrency
This commit is contained in:
parent
9663b677ba
commit
a2b841b401
1 changed files with 5 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ type QueryParams struct {
|
||||||
User string
|
User string
|
||||||
Pass string
|
Pass string
|
||||||
Drivers []string
|
Drivers []string
|
||||||
Threads int
|
Concurrency int
|
||||||
Preferred string
|
Preferred string
|
||||||
Timeout int
|
Timeout int
|
||||||
CaCertPath string
|
CaCertPath string
|
||||||
|
|
@ -71,14 +71,14 @@ func CollectAll(probeStates *[]ScannedResult, l *log.Logger, q *QueryParams) err
|
||||||
offset = 0
|
offset = 0
|
||||||
wg sync.WaitGroup
|
wg sync.WaitGroup
|
||||||
found = make([]string, 0, len(*probeStates))
|
found = make([]string, 0, len(*probeStates))
|
||||||
done = make(chan struct{}, q.Threads+1)
|
done = make(chan struct{}, q.Concurrency+1)
|
||||||
chanProbeState = make(chan ScannedResult, q.Threads+1)
|
chanProbeState = make(chan ScannedResult, q.Concurrency+1)
|
||||||
client = smd.NewClient(
|
client = smd.NewClient(
|
||||||
smd.WithSecureTLS(q.CaCertPath),
|
smd.WithSecureTLS(q.CaCertPath),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
wg.Add(q.Threads)
|
wg.Add(q.Concurrency)
|
||||||
for i := 0; i < q.Threads; i++ {
|
for i := 0; i < q.Concurrency; i++ {
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
ps, ok := <-chanProbeState
|
ps, ok := <-chanProbeState
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue