chore: rename: peer exchange peers are not bootstrap peers

This commit is contained in:
fryorcraken.eth 2023-03-10 10:22:54 +11:00
parent 1181eadcf8
commit 5a42efcd8d
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 4 additions and 7 deletions

View File

@ -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,
}
);