Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
Reduce connmgr to 1500/2000
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu committed Jun 28, 2019
1 parent 3f84fb6 commit f470bee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dht-node
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func bootstrapper() pstore.PeerInfo {
var bootstrapDone int64

func makeAndStartNode(ds ds.Batching, addr string, relay bool, bucketSize int, limiter chan struct{}) (host.Host, *dht.IpfsDHT, error) {
cmgr := connmgr.NewConnManager(3000, 4000, time.Minute)
cmgr := connmgr.NewConnManager(1500, 2000, time.Minute)

priv, _, _ := crypto.GenerateKeyPair(crypto.Ed25519, 0)

Expand Down

0 comments on commit f470bee

Please sign in to comment.