docs(config): ProviderSearchDelay (#9526)
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com> Co-authored-by: Marcin Rataj <lidel@lidel.org>
Antonio Navarro Perez committed
Jan 4, 2023 at 20:44 UTC
04931b042d88753c1f2dc7846b4b5925ba816948
1 file changed
+9
-1
docs/config.md
+9
-1
@@ -71,6 +71,7 @@ config file at runtime.
71
- [`Internal.Bitswap.EngineBlockstoreWorkerCount`](#internalbitswapengineblockstoreworkercount)
72
- [`Internal.Bitswap.EngineTaskWorkerCount`](#internalbitswapenginetaskworkercount)
73
- [`Internal.Bitswap.MaxOutstandingBytesPerPeer`](#internalbitswapmaxoutstandingbytesperpeer)
74
+ - [`Internal.Bitswap.ProviderSearchDelay`](#internalbitswapprovidersearchdelay)
75
- [`Internal.UnixFSShardingSizeThreshold`](#internalunixfsshardingsizethreshold)
76
- [`Ipns`](#ipns)
77
- [`Ipns.RepublishPeriod`](#ipnsrepublishperiod)
@@ -153,7 +154,6 @@ config file at runtime.
154
- [`Swarm.Transports.Network.QUIC`](#swarmtransportsnetworkquic)
155
- [`Swarm.Transports.Network.Relay`](#swarmtransportsnetworkrelay)
156
- [`Swarm.Transports.Network.WebTransport`](#swarmtransportsnetworkwebtransport)
156
- - [How to enable WebTransport](#how-to-enable-webtransport)
157
- [`Swarm.Transports.Security`](#swarmtransportssecurity)
158
- [`Swarm.Transports.Security.TLS`](#swarmtransportssecuritytls)
159
- [`Swarm.Transports.Security.SECIO`](#swarmtransportssecuritysecio)
@@ -970,6 +970,14 @@ deteriorate the quality provided to less aggressively-wanting peers.
970
971
Type: `optionalInteger` (byte count, `null` means default which is 1MB)
972
973
+### `Internal.Bitswap.ProviderSearchDelay`
974
+
975
+This parameter determines how long to wait before looking for providers outside of bitswap.
976
+Other routing systems like the DHT are able to provide results in less than a second, so lowering
977
+this number will allow faster peers lookups in some cases.
978
+
979
+Type: `optionalDuration` (`null` means default which is 1s)
980
+
981
### `Internal.UnixFSShardingSizeThreshold`
982
983
The sharding threshold used internally to decide whether a UnixFS directory should be sharded or not.