You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(share)!: add functional options to share pkg (#1798)
## Overview
This PR introduces functional options to the share package and
deprecates usage of default values directly in code, in favor of using
parameterized values.
## Breaking
This PR breaks the configuration. The on-disk configuration becomes
(_note that `Share.Availability` is only available for light nodes_):
```
[Share]
[Share.Availability]
SampleAmount = 16
[Share.Discovery]
PeersLimit = 5
AdvertiseInterval = "8h0m0s"
```
## Checklist
- [x] New and updated code has appropriate documentation
- [x] New and updated code has new and/or updated testing
- [x] Required CI checks are passing
- [x] Visual proof for any user facing features like CLI or
documentation updates
- [x] Linked issues closed with keywords
0 commit comments