Skip to content

Commit

Permalink
Remove pointless code causing memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer9 committed Mar 21, 2018
1 parent 3df5a53 commit e092229
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func main() {

for {
done := make(chan bool)
timeout := make(chan bool)
go func() {
nodeID, err := c.CrawlOnce()

Expand Down Expand Up @@ -83,10 +82,6 @@ func main() {
}
done <- true
}()
go func() {
time.Sleep(time.Second * 10)
timeout <- true
}()
select {
case <-done:
break
Expand Down

0 comments on commit e092229

Please sign in to comment.