Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove factory function and expose constrctor #364

Closed
lance opened this issue Aug 15, 2019 · 0 comments · Fixed by #366
Closed

Remove factory function and expose constrctor #364

lance opened this issue Aug 15, 2019 · 0 comments · Fixed by #366

Comments

@lance
Copy link
Member

lance commented Aug 15, 2019

With the move of many things to user space, the factory function no longer serves a purpose. It should be removed and the CircuitBreaker constructor should be exposed.

Ref: #350 (comment)

@lance lance self-assigned this Aug 15, 2019
lance added a commit that referenced this issue Aug 15, 2019
BREAKING CHANGE

Instead of requiring the use of a factory function, which has
no real purpose other than introducing a layer of indirection,
we should really just be exposing the CircuitBreaker constructor
function.

Fixes: #364
lance added a commit that referenced this issue Aug 20, 2019
* improvement: expose CircuitBreaker ctor

BREAKING CHANGE

Instead of requiring the use of a factory function, which has
no real purpose other than introducing a layer of indirection,
we should really just be exposing the CircuitBreaker constructor
function.

Fixes: #364

* squash: fix linting issues caused by making some lines too long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant