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

Ensure Hooks are linked to the Cachex Supervisor #33

Merged
merged 1 commit into from
May 23, 2016
Merged

Conversation

whitfin
Copy link
Owner

@whitfin whitfin commented May 23, 2016

This PR will resolve #32. Hooks will now be supervised by the Cachex supervisor rather than being linked to the calling process. This fixes an issue when you create a cache from a spawned process and all hooks immediately die due to the links.

I've also stripped out the internal start/2 functions of both Cachex.Worker and Cachex.Janitor and made Cachex.start/2 far more elegant (as it was actually broken previously).

In addition, there's some general cleanup of public functions which should've been private.

@coveralls
Copy link

coveralls commented May 23, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling ec07491 on issue-32 into 4d5a8ad on master.

@whitfin whitfin merged commit 6af0dee into master May 23, 2016
@whitfin whitfin deleted the issue-32 branch May 23, 2016 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All hooks should link to the Cachex supervisor, not the main process
2 participants