From e889d535bf19178cbe453b13f0a60467ee69b0f4 Mon Sep 17 00:00:00 2001 From: Brian Botha Date: Mon, 29 Apr 2024 15:29:17 +1000 Subject: [PATCH] fix: small `identities discover` fixes [ci skip] --- src/identities/CommandDiscover.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/identities/CommandDiscover.ts b/src/identities/CommandDiscover.ts index 83aaedb6..d346c2db 100644 --- a/src/identities/CommandDiscover.ts +++ b/src/identities/CommandDiscover.ts @@ -1,5 +1,5 @@ import type PolykeyClient from 'polykey/dist/PolykeyClient'; -import type { GestaltId, GestaltIdEncoded } from 'polykey/dist/gestalts/types'; +import type { GestaltId } from 'polykey/dist/gestalts/types'; import CommandPolykey from '../CommandPolykey'; import * as binOptions from '../utils/options'; import * as binUtils from '../utils'; @@ -53,12 +53,10 @@ class CommandDiscover extends CommandPolykey { }, logger: this.logger.getChild(PolykeyClient.name), }); - const parentSet: Set = new Set(); - parentSet.add(gestaltUtils.encodeGestaltId(gestaltId)); let eventsP: Promise | undefined; if (options.monitor === true) { // Creating an infinite timer to hold the process open - const holdOpenTimer = setTimeout(() => {}, Infinity); + const holdOpenTimer = setTimeout(() => {}, 2 ** 30); // We set up the readable stream watching the discovery events here eventsP = binUtils .retryAuthentication(async (auth) => {