diff --git a/src/discovery/Discovery.ts b/src/discovery/Discovery.ts index 7d32add22..318f190eb 100644 --- a/src/discovery/Discovery.ts +++ b/src/discovery/Discovery.ts @@ -309,6 +309,7 @@ class Discovery { } } await Promise.all(taskPromises); + this.logger.info(`Stopped all tasks for ${this.constructor.name}`); this.taskManager.deregisterHandler(this.discoverVertexHandlerId); this.taskManager.deregisterHandler(this.checkRediscoveryHandlerId); this.logger.info(`Stopped ${this.constructor.name}`); @@ -1061,7 +1062,7 @@ class Discovery { ]); } // We want to lock all the ids at once before moving ahead - const locks = gestaltIds.map((gestaltIdEncoded) => { + const locks = gestaltIds.map(([gestaltIdEncoded]) => { return [ this.constructor.name, this.discoverVertexHandlerId,