Skip to content

Commit

Permalink
Remember to bootstrap immediately ;_;
Browse files Browse the repository at this point in the history
  • Loading branch information
bigs committed Jul 24, 2018
1 parent e8d32a5 commit 9d8818b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dht_bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (dht *IpfsDHT) BootstrapWithConfig(cfg BootstrapConfig) (goprocess.Process,
}

proc := dht.Process().Go(func(p goprocess.Process) {
<-p.Go(dht.bootstrapWorker(cfg)).Closed()
for {
select {
case <-time.After(cfg.Period):
Expand Down

0 comments on commit 9d8818b

Please sign in to comment.