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

Replace endpoint broadcasts #1714

Merged
merged 3 commits into from
Dec 23, 2024
Merged

Conversation

elinol
Copy link
Contributor

@elinol elinol commented Dec 20, 2024

See #1703.

Removes all broadcasting to DeviceEndpoint.

@elinol
Copy link
Contributor Author

elinol commented Dec 20, 2024

@joshk here's a recreated PR. don't ask why there's two commit on updating a function argument name...

Copy link
Collaborator

@joshk joshk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to merge in this PR, but there is one suggestion I think we should address in a different PR.

@@ -64,4 +64,23 @@ defmodule NervesHub.Extensions do
def module(_key, _ver) do
:unsupported
end

def toggle_extension(target, event, extension) do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend renaming this function to broadcast_extension_event as the current name makes it sound like the extension is being enabled/disabled.

@joshk joshk merged commit fb96d9e into nerves-hub:main Dec 23, 2024
2 checks passed
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