mirror of https://github.com/waku-org/js-waku.git
chore: rename: peer exchange peers are not bootstrap peers
This commit is contained in:
parent
1181eadcf8
commit
5a42efcd8d
|
@ -49,8 +49,8 @@ export interface Options {
|
|||
}
|
||||
|
||||
export const DEFAULT_PEER_EXCHANGE_TAG_NAME = "peer-exchange";
|
||||
const DEFAULT_PEER_EXCHANGE_BOOTSTRAP_TAG_VALUE = 50;
|
||||
const DEFAULT_PEER_EXCHANGE_BOOTSTRAP_TAG_TTL = 120000;
|
||||
const DEFAULT_PEER_EXCHANGE_TAG_VALUE = 50;
|
||||
const DEFAULT_PEER_EXCHANGE_TAG_TTL = 120000;
|
||||
|
||||
export class PeerExchangeDiscovery
|
||||
extends EventEmitter<PeerDiscoveryEvents>
|
||||
|
@ -186,11 +186,8 @@ export class PeerExchangeDiscovery
|
|||
peerInfo.id,
|
||||
DEFAULT_PEER_EXCHANGE_TAG_NAME,
|
||||
{
|
||||
value:
|
||||
this.options.tagValue ??
|
||||
DEFAULT_PEER_EXCHANGE_BOOTSTRAP_TAG_VALUE,
|
||||
ttl:
|
||||
this.options.tagTTL ?? DEFAULT_PEER_EXCHANGE_BOOTSTRAP_TAG_TTL,
|
||||
value: this.options.tagValue ?? DEFAULT_PEER_EXCHANGE_TAG_VALUE,
|
||||
ttl: this.options.tagTTL ?? DEFAULT_PEER_EXCHANGE_TAG_TTL,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue