Open
Description
In the current workflow, integrant initializes keys one by one, checking each time if the provided data is valid according to pre-init-spec
. When the data is not valid, integrant throws and it actually gets messy. For instance, the resources allocated by the previous keys are not released. Sometimes, this means we have to restart the repl.
What I suggest is that integrant validates all data before initializing anything. The specs we write for our system means that if the data is not valid, something will probably fail. It is best to fail fast instead of starting the system, opening ports and stuff', and eventually failing anyway and leaving a big mess.
Metadata
Metadata
Assignees
Labels
No labels