Skip to content

Commit e1453da

Browse files
committed
defaults: set default concurrency parameter to 10
1 parent 834b727 commit e1453da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dht_options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var defaults = func(o *config) error {
117117
o.maxRecordAge = time.Hour * 36
118118

119119
o.bucketSize = defaultBucketSize
120-
o.concurrency = 3
120+
o.concurrency = 10
121121
o.resiliency = 3
122122

123123
o.v1CompatibleMode = true
@@ -281,7 +281,7 @@ func BucketSize(bucketSize int) Option {
281281

282282
// Concurrency configures the number of concurrent requests (alpha in the Kademlia paper) for a given query path.
283283
//
284-
// The default value is 3.
284+
// The default value is 10.
285285
func Concurrency(alpha int) Option {
286286
return func(c *config) error {
287287
c.concurrency = alpha

0 commit comments

Comments
 (0)