Skip to content

Commit

Permalink
fix: remove useless scheduler.Start()
Browse files Browse the repository at this point in the history
  • Loading branch information
WangYihang committed Feb 27, 2024
1 parent ea56b62 commit 26e2a78
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/complex-http-crawler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@ func main() {
for line := range util.Cat(opts.InputFilePath) {
scheduler.Submit(model.New(string(line)))
}
scheduler.Start()
scheduler.Wait()
}
1 change: 0 additions & 1 deletion examples/sleeper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func main() {
SetNumShards(4).
SetShard(0).
Start()
scheduler.Start()
for i := 0; i < 256; i++ {
scheduler.Submit(New(i, rand.Intn(10)))
}
Expand Down

0 comments on commit 26e2a78

Please sign in to comment.