pnxtech / hydra

A light-weight library for building distributed applications such as microservices
https://www.hydramicroservice.com
MIT License
645 stars 54 forks source link

I5-multiple Init() should generate an error reject() promise #185

Closed sjmcdowall closed 6 years ago

sjmcdowall commented 6 years ago

Calling init() more than once it bad mojo — let’s protect that by doing a reject() if called more than once .

Added the check and also added a unit test to cover it....

cjus commented 6 years ago

@sjmcdowall thanks for this!