diff --git a/dht_options.go b/dht_options.go index bd3523d67..d0beb23e0 100644 --- a/dht_options.go +++ b/dht_options.go @@ -117,7 +117,7 @@ var defaults = func(o *config) error { o.maxRecordAge = time.Hour * 36 o.bucketSize = defaultBucketSize - o.concurrency = 3 + o.concurrency = 10 o.resiliency = 3 o.v1CompatibleMode = true @@ -281,7 +281,7 @@ func BucketSize(bucketSize int) Option { // Concurrency configures the number of concurrent requests (alpha in the Kademlia paper) for a given query path. // -// The default value is 3. +// The default value is 10. func Concurrency(alpha int) Option { return func(c *config) error { c.concurrency = alpha diff --git a/dht_test.go b/dht_test.go index 2cd45929c..f8efa03a5 100644 --- a/dht_test.go +++ b/dht_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - pb "github.com/libp2p/go-libp2p-kad-dht/pb" test "github.com/libp2p/go-libp2p-kad-dht/internal/testing" + pb "github.com/libp2p/go-libp2p-kad-dht/pb" "github.com/ipfs/go-cid" u "github.com/ipfs/go-ipfs-util"