BitswapConfig constructor
- @Deprecated('Request concurrency is not limited by config; ' 'this option is ignored.') int maxConcurrentRequests = 10,
- List<
String> httpFallbackGateways = const <String>[], - Duration p2pTimeout = const Duration(seconds: 30),
- Duration httpTimeout = const Duration(seconds: 10),
- bool enableHttpFallback = false,
- int maxHttpBlockSize = 2 * 1024 * 1024,
- bool allowPrivateGateways = false,
- String publicGatewayUrl = 'https://ipfs.io/ipfs',
- @visibleForTesting bool verifyHttpBlocks = true,
Creates a new BitswapConfig.
Implementation
const BitswapConfig({
@Deprecated(
'Request concurrency is not limited by config; '
'this option is ignored.',
)
this.maxConcurrentRequests = 10,
this.httpFallbackGateways = const <String>[],
this.p2pTimeout = const Duration(seconds: 30),
this.httpTimeout = const Duration(seconds: 10),
this.enableHttpFallback = false,
this.maxHttpBlockSize = 2 * 1024 * 1024,
this.allowPrivateGateways = false,
this.publicGatewayUrl = 'https://ipfs.io/ipfs',
@visibleForTesting this.verifyHttpBlocks = true,
});