From 65336fc184c90ed39e6b25dbf249d47e923e7f82 Mon Sep 17 00:00:00 2001 From: Petar Maymounkov Date: Fri, 23 Jul 2021 09:29:33 -0400 Subject: [PATCH] go-ipfs-config: feat: add Internal and Internal.Bitswap config options --- config/config.go | 2 ++ config/internal.go | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 config/internal.go diff --git a/config/config.go b/config/config.go index 5a603015ce8c..419a6a71f3ae 100644 --- a/config/config.go +++ b/config/config.go @@ -36,6 +36,8 @@ type Config struct { Experimental Experiments Plugins Plugins Pinning Pinning + + Internal Internal // experimental/unstable options } const ( diff --git a/config/internal.go b/config/internal.go new file mode 100644 index 000000000000..2e71ac16eb77 --- /dev/null +++ b/config/internal.go @@ -0,0 +1,12 @@ +package config + +type Internal struct { + Bitswap *InternalBitswap `json:",omitempty"` // This is omitempty since we are expecting to make changes to all subcomponents of Internal +} + +type InternalBitswap struct { + TaskWorkerCount OptionalInteger + EngineBlockstoreWorkerCount OptionalInteger + EngineTaskWorkerCount OptionalInteger + MaxOutstandingBytesPerPeer OptionalInteger +}