Skip to content

Commit

Permalink
fix: small identities discover fixes
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
tegefaulkes committed Apr 29, 2024
1 parent 670884c commit e889d53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/identities/CommandDiscover.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -53,12 +53,10 @@ class CommandDiscover extends CommandPolykey {
},
logger: this.logger.getChild(PolykeyClient.name),
});
const parentSet: Set<GestaltIdEncoded> = new Set();
parentSet.add(gestaltUtils.encodeGestaltId(gestaltId));
let eventsP: Promise<void> | 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) => {
Expand Down

0 comments on commit e889d53

Please sign in to comment.