go-ipfs-config: feat: add Internal and Internal.Bitswap config options
Petar Maymounkov committed
Jul 23, 2021 at 09:29 UTC
44291176e63ee0d4b666216670f75e258cb6022c
2 files changed
+14
config/config.go
+2
@@ -36,6 +36,8 @@ type Config struct {
36
Experimental Experiments
37
Plugins Plugins
38
Pinning Pinning
39
+
40
+ Internal Internal // experimental/unstable options
41
}
42
43
const (
config/internal.go
new
+12
@@ -0,0 +1,12 @@
1
+package config
2
+
3
+type Internal struct {
4
+ Bitswap *InternalBitswap `json:",omitempty"` // This is omitempty since we are expecting to make changes to all subcomponents of Internal
5
+}
6
+
7
+type InternalBitswap struct {
8
+ TaskWorkerCount OptionalInteger
9
+ EngineBlockstoreWorkerCount OptionalInteger
10
+ EngineTaskWorkerCount OptionalInteger
11
+ MaxOutstandingBytesPerPeer OptionalInteger
12
+}