remove unused bootstrap function from discovery/service.go (#1558)

* remove unused bootstrap function from discovery/service.go

* Linter fix missing semicolon
This commit is contained in:
Dylan Lott 2019-03-22 15:00:38 -06:00 committed by GitHub
parent 0fa1d536e7
commit c6d5ff5dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,19 +216,6 @@ func (discovery *Discovery) searchGraveyard(ctx context.Context) error {
return errors.Err()
}
// Bootstrap walks the initialized network and populates the cache
func (discovery *Discovery) bootstrap(ctx context.Context) error {
// o := overlay.LoadFromContext(ctx)
// kad := kademlia.LoadFromContext(ctx)
// TODO(coyle): make Bootstrap work
// look in our routing table
// get every node we know about
// ask every node for every node they know about
// for each newly known node, ask those nodes for every node they know about
// continue until no new nodes are found
return nil
}
// Discovery runs lookups for random node ID's to find new nodes in the network
func (discovery *Discovery) discover(ctx context.Context) error {
r, err := randomID()