Skip to content

fix: wrong supervisor behavior#105

Merged
davidebriani merged 1 commit intoastarte-platform:feature/erlang-rpcfrom
lusergit:fix/horde_lookup_case
Apr 9, 2025
Merged

fix: wrong supervisor behavior#105
davidebriani merged 1 commit intoastarte-platform:feature/erlang-rpcfrom
lusergit:fix/horde_lookup_case

Conversation

@lusergit
Copy link
Copy Markdown
Contributor

@lusergit lusergit commented Apr 8, 2025

RPC supervisor crashed when another rpc serve was already present in the distributed registry. With this PR the RPC server starts if no other server are in the registry and otherwise nothing happens 👍

Moves the `case` caluse of the lookup of an existing RPC server to a
`with` cluase, effectively starting a new child only if no other
children are present in the registry for the `:server` key

Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
@davidebriani davidebriani merged commit f2cfe8a into astarte-platform:feature/erlang-rpc Apr 9, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants