@cryptotaxi247 / kubo / commits / 810c8e73a

go-ipfs-config: Integrate connection manager

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Sep 14, 2017 at 13:43 UTC 810c8e73a41a72220c30f9f82210d18952bdd1b2
1 file changed +10
config/swarm.go
+10
@@ -6,4 +6,14 @@ type SwarmConfig struct {
6 DisableNatPortMap bool
7 DisableRelay bool
8 EnableRelayHop bool
9 +
10 + ConnMgr ConnMgr
11 +}
12 +
13 +// ConnMgr defines configuration options for the libp2p connection manager
14 +type ConnMgr struct {
15 + Type string
16 + LowWater int
17 + HighWater int
18 + GracePeriod string
19 }