diff --git a/src/discovery/local-discovery.js b/src/discovery/local-discovery.js index 788de84ae..fc181a139 100644 --- a/src/discovery/local-discovery.js +++ b/src/discovery/local-discovery.js @@ -66,10 +66,6 @@ export class LocalDiscovery extends TypedEmitter { }) } - get publicKey() { - return this.#identityKeypair.publicKey - } - /** @returns {Promise<{ name: string, port: number }>} */ async start() { await this.#sm.start() @@ -256,10 +252,6 @@ export class LocalDiscovery extends TypedEmitter { this.emit('connection', conn) } - get connections() { - return this.#noiseConnections.values() - } - /** * Close all servers and stop multicast advertising and browsing. Will wait * for open sockets to close unless opts.force=true in which case open sockets diff --git a/tests/discovery/local-discovery.js b/tests/discovery/local-discovery.js index 76d7aa68a..10bdf47f4 100644 --- a/tests/discovery/local-discovery.js +++ b/tests/discovery/local-discovery.js @@ -135,7 +135,7 @@ async function testMultiple(t, { period, nPeers = 20 }) { for (let i = 0; i < nPeers; i++) { const identityKeypair = new KeyManager(randomBytes(16)).getIdentityKeypair() const discovery = new LocalDiscovery({ identityKeypair }) - const peerId = keyToPublicId(discovery.publicKey) + const peerId = keyToPublicId(identityKeypair.publicKey) peersById.set(peerId, discovery) /** @type {OpenedNoiseStream[]} */ const conns = []