mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-07-02 14:11:35 +00:00
chore: rename bootstrap to refresh
As pointed out by raul, bootstrapping and refreshing are not the same thing. Bootstrapping is the initial setup (i.e., connect to some initial nodes to get started). Refreshing is the process of refreshing the routing table.
This commit is contained in:
@ -30,7 +30,7 @@ func TestGetFailures(t *testing.T) {
|
||||
}
|
||||
hosts := mn.Hosts()
|
||||
|
||||
os := []opts.Option{opts.DisableAutoBootstrap()}
|
||||
os := []opts.Option{opts.DisableAutoRefresh()}
|
||||
d, err := New(ctx, hosts[0], os...)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@ -152,7 +152,7 @@ func TestNotFound(t *testing.T) {
|
||||
}
|
||||
hosts := mn.Hosts()
|
||||
|
||||
os := []opts.Option{opts.DisableAutoBootstrap()}
|
||||
os := []opts.Option{opts.DisableAutoRefresh()}
|
||||
d, err := New(ctx, hosts[0], os...)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@ -232,7 +232,7 @@ func TestLessThanKResponses(t *testing.T) {
|
||||
}
|
||||
hosts := mn.Hosts()
|
||||
|
||||
os := []opts.Option{opts.DisableAutoBootstrap()}
|
||||
os := []opts.Option{opts.DisableAutoRefresh()}
|
||||
d, err := New(ctx, hosts[0], os...)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@ -302,7 +302,7 @@ func TestMultipleQueries(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
hosts := mn.Hosts()
|
||||
os := []opts.Option{opts.DisableAutoBootstrap()}
|
||||
os := []opts.Option{opts.DisableAutoRefresh()}
|
||||
d, err := New(ctx, hosts[0], os...)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
Reference in New Issue
Block a user