Skip to content

Commit 263b3df

Browse files
committed
feat: fixed transaction conflicts in discovery
1 parent ba0ad5c commit 263b3df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/discovery/Discovery.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ class Discovery {
309309
}
310310
}
311311
await Promise.all(taskPromises);
312+
this.logger.info(`Stopped all tasks for ${this.constructor.name}`);
312313
this.taskManager.deregisterHandler(this.discoverVertexHandlerId);
313314
this.taskManager.deregisterHandler(this.checkRediscoveryHandlerId);
314315
this.logger.info(`Stopped ${this.constructor.name}`);
@@ -1061,7 +1062,7 @@ class Discovery {
10611062
]);
10621063
}
10631064
// We want to lock all the ids at once before moving ahead
1064-
const locks = gestaltIds.map((gestaltIdEncoded) => {
1065+
const locks = gestaltIds.map(([gestaltIdEncoded]) => {
10651066
return [
10661067
this.constructor.name,
10671068
this.discoverVertexHandlerId,

0 commit comments

Comments
 (0)