Skip to content

Commit 68432ba

Browse files
committed
chore: remove debug
1 parent 2cfd7f0 commit 68432ba

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

core/pool/brutepool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ Loop:
209209
case w, ok := <-pool.Worder.Output:
210210
if !ok {
211211
done = true
212+
time.Sleep(100 * time.Millisecond)
212213
continue
213214
}
214215
pool.Statistor.End++

core/pool/checkpool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Loop:
7171
case u, ok := <-pool.Worder.Output:
7272
if !ok {
7373
done = true
74+
time.Sleep(100 * time.Millisecond)
7475
continue
7576
}
7677

spray.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"github.com/chainreactors/spray/cmd"
66
"github.com/gookit/config/v2"
77
"github.com/gookit/config/v2/yaml"
8-
"net/http"
9-
_ "net/http/pprof"
8+
//"net/http"
9+
//_ "net/http/pprof"
1010
)
1111

1212
func init() {
@@ -18,10 +18,10 @@ func init() {
1818
}
1919

2020
func main() {
21-
// 启动 pprof HTTP 服务器
22-
go func() {
23-
http.ListenAndServe("localhost:6060", nil)
24-
}()
21+
//// 启动 pprof HTTP 服务器
22+
//go func() {
23+
// http.ListenAndServe("localhost:6060", nil)
24+
//}()
2525

2626
cmd.Spray()
2727
}

0 commit comments

Comments
 (0)