network
network copied to clipboard
refactor(network): Default configs as constants for layer2
Summary
Added constants for default configurations for Layer2 classes.
Changes
- Random node view count is now configured with the nodeViewSize config option
Future improvements
- Do the same for the discovery layer #3000
- Remove remaining magic numbers around ControlLayerNode configuration (Could also clean up on the DHT side).
- Could maybe pass some of the defaults from a higher layer (for example the sdk). This will require some thought as some of the configs could be wanted on a per stream partition basis and others for all streams.
- Rename all fields with
listSizeto ielistNodeCount