mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
Allow configuration of the bitswap server's replace WantHave with WantBlock maximum block size using the Internal.Bitswap.WantHaveReplaceSize config item. This sets the maximum size of a block in bytes up to which we will replace a want-have with a want-block. Setting a size of 0 disables this replacement and means that block sizes are not read for WantHave requests. See ipfs/boxo#672 for more details Updated boxo to version with PR 672 --------- Co-authored-by: Marcin Rataj <lidel@lidel.org>
19 lines
713 B
Go
19 lines
713 B
Go
package config
|
|
|
|
type Internal struct {
|
|
// All marked as omitempty since we are expecting to make changes to all subcomponents of Internal
|
|
Bitswap *InternalBitswap `json:",omitempty"`
|
|
UnixFSShardingSizeThreshold *OptionalString `json:",omitempty"`
|
|
Libp2pForceReachability *OptionalString `json:",omitempty"`
|
|
BackupBootstrapInterval *OptionalDuration `json:",omitempty"`
|
|
}
|
|
|
|
type InternalBitswap struct {
|
|
TaskWorkerCount OptionalInteger
|
|
EngineBlockstoreWorkerCount OptionalInteger
|
|
EngineTaskWorkerCount OptionalInteger
|
|
MaxOutstandingBytesPerPeer OptionalInteger
|
|
ProviderSearchDelay OptionalDuration
|
|
WantHaveReplaceSize OptionalInteger
|
|
}
|