Skip to content

Commit

Permalink
feat: fixed transaction conflicts in discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Jan 17, 2025
1 parent ba0ad5c commit 263b3df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/discovery/Discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 263b3df

Please sign in to comment.