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 singleton VocIndex GenServer to make pure library #10

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

fhunleth
Copy link
Collaborator

This PR builds off #9 and creates one VocIndex GenServer per sensor. This enables more than one sensor to be attached and removes some complexity in restarting the C code when state needs to be re-initialized.

@fhunleth fhunleth requested a review from mnishiguchi January 12, 2025 21:44
This moves the C algorithm code management out of a singleton GenServer
since it maintains per-sensor state. This also makes this package a pure
library and simplifies state handling in the port.
@mnishiguchi mnishiguchi merged commit fbf8dcf into main Jan 13, 2025
18 checks passed
@mnishiguchi mnishiguchi deleted the simplify-start_link branch January 13, 2025 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants