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

feat: plugin channel API #760

Closed
wants to merge 1 commit into from
Closed

Conversation

andrewgazelka
Copy link
Collaborator

@andrewgazelka andrewgazelka commented Dec 19, 2024

@github-actions github-actions bot added the feat label Dec 19, 2024
Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment on lines +43 to +51
.each_iter(|it, _, (queue, registry)| {
for PluginMessage { channel, data } in queue.drain() {
let Some(handler) = registry.registry.get(channel) else {
continue;
};

handler(todo!(), data);
}
});
Copy link

Choose a reason for hiding this comment

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

The todo!() macro in the handler call will cause a runtime panic. The system needs to construct and pass a valid PacketSwitchQuery to the handler function. Consider modifying the system signature to include the necessary components for building a PacketSwitchQuery, then pass that to the handler instead of todo!().

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@andrewgazelka andrewgazelka force-pushed the andrew/plugin-channel-module branch from 16d7375 to a7b22eb Compare December 19, 2024 20:57
@andrewgazelka
Copy link
Collaborator Author

duplicate #771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant