Skip to content

Commit

Permalink
Fix broken util-actor when multiple versions running (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink authored May 22, 2024
1 parent 1e4af0b commit fe5e1b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/grumpy-bottles-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@onflow/util-actor": patch
---

Fix broken util-actor when multiple versions are running at once
5 changes: 4 additions & 1 deletion packages/util-actor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ const fromHandlers =

const parseAddr = (addr: string | number | null): string => {
if (addr == null) {
return String(++pid)
while (FCL_REGISTRY[String(pid)]) {
pid++
}
return String(pid)
}
return String(addr)
}
Expand Down

0 comments on commit fe5e1b3

Please sign in to comment.