From 5a42efcd8d9eb6b000437605411553a273daeec6 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Fri, 10 Mar 2023 10:22:54 +1100 Subject: [PATCH] chore: rename: peer exchange peers are not bootstrap peers --- .../peer-exchange/src/waku_peer_exchange_discovery.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/peer-exchange/src/waku_peer_exchange_discovery.ts b/packages/peer-exchange/src/waku_peer_exchange_discovery.ts index 65707d86ef..c0c46ccf45 100644 --- a/packages/peer-exchange/src/waku_peer_exchange_discovery.ts +++ b/packages/peer-exchange/src/waku_peer_exchange_discovery.ts @@ -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 @@ -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, } );