mirror of https://github.com/waku-org/js-waku.git
Change default to wait for Relay only
Store is not used by all applications, also, note all nodes have store enabled. Default value should prefer working software over feature complexity.
This commit is contained in:
parent
7772c0afd6
commit
4b43db6daa
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
|
||||
- `waitForRemotePeer` waits for a Relay peer by default instead of Relay and Store.
|
||||
|
||||
## [0.23.0] - 2022-05-19
|
||||
|
||||
### Added
|
||||
|
|
|
@ -329,10 +329,10 @@ export class Waku {
|
|||
* Wait for a remote peer to be ready given the passed protocols.
|
||||
* Useful when using the [[CreateOptions.bootstrap]] with [[Waku.create]].
|
||||
*
|
||||
* @default Remote peer must have Waku Store and Waku Relay enabled.
|
||||
* @default Remote peer must have Waku Relay enabled.
|
||||
*/
|
||||
async waitForRemotePeer(protocols?: Protocols[]): Promise<void> {
|
||||
const desiredProtocols = protocols ?? [Protocols.Relay, Protocols.Store];
|
||||
const desiredProtocols = protocols ?? [Protocols.Relay];
|
||||
|
||||
const promises = [];
|
||||
|
||||
|
|
Loading…
Reference in New Issue