File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ type searchPortfolio struct {
6464 dns []model.DNSResult
6565 }
6666 wg * sync.WaitGroup
67- c int
6867}
6968
7069// newSearchPortfolio creates a new portfolio instance.
@@ -83,7 +82,6 @@ func (p *searchPortfolio) isEmpty() bool {
8382// run invokes a function as a goroutine and passes a WaitGroup into it.
8483func (p * searchPortfolio ) run (f func (wg * sync.WaitGroup )) {
8584 p .wg .Add (1 )
86- p .c ++
8785 go f (p .wg )
8886}
8987
@@ -92,11 +90,6 @@ func (p *searchPortfolio) wait() {
9290 p .wg .Wait ()
9391}
9492
95- // count returns the goroutine count.
96- func (p * searchPortfolio ) count () int {
97- return p .c
98- }
99-
10093// getOutputMode returns an OutputMode instance.
10194func getOutputMode (mode string ) util.OutputMode {
10295 switch mode {
You can’t perform that action at this time.
0 commit comments