Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat: add Internal and Internal.Bitswap config options
Browse files Browse the repository at this point in the history
  • Loading branch information
petar authored and aschmahmann committed Aug 18, 2021
1 parent 692cc4c commit a412831
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ type Config struct {
Experimental Experiments
Plugins Plugins
Pinning Pinning

Internal Internal // experimental/unstable options
}

const (
Expand Down
12 changes: 12 additions & 0 deletions internal.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit a412831

Please sign in to comment.