Commit 9803fb82 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

feat(core) dht.Bootstrap

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 858cde0d
......@@ -341,7 +341,7 @@ func (dht *IpfsDHT) PingRoutine(t time.Duration) {
}
// Bootstrap builds up list of peers by requesting random peer IDs
func (dht *IpfsDHT) Bootstrap(ctx context.Context, queries int) {
func (dht *IpfsDHT) Bootstrap(ctx context.Context, queries int) error {
// bootstrap sequentially, as results will compound
for i := 0; i < NumBootstrapQueries; i++ {
......@@ -357,4 +357,5 @@ func (dht *IpfsDHT) Bootstrap(ctx context.Context, queries int) {
log.Errorf("dht seemingly found a peer at a random bootstrap id (%s)...", pi)
}
}
return nil
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment