Closed ptrf closed 6 years ago
For example: Imagine we have a connection named amqp_server, and we start an RPC service using
amqp_server
turtle_service:start_link(#{ name => rpc_service, connection => amqpserver, [...] })
Then turtle proceeds happily to create rpc_service, although it has no connectivity.
Proposed solution: In validate_config/1, check the application environment to see if the named connection has been defined - if not, we should crash
validate_config/1
@jlouis Unless you have any objections, I'll go ahead and submit a PR that fixes this issue.
Fixed in #40
For example: Imagine we have a connection named
amqp_server
, and we start an RPC service usingturtle_service:start_link(#{ name => rpc_service, connection => amqpserver, [...] })
Then turtle proceeds happily to create rpc_service, although it has no connectivity.
Proposed solution: In
validate_config/1
, check the application environment to see if the named connection has been defined - if not, we should crash