fix: correct event handler registration in plugins #29
Reference in New Issue
Block a user
Delete Branch "fix/plugin-event-handlers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
This PR fixes incorrect event handler registration in two plugins that were introduced in the refactoring.
The bugs prevented the plugins from functioning as intended.
Fixed issues:
plugin.StepforStopEventinstead ofplugin.Stop, preventing statistics from being printed at the end of execution.StopEventinstead ofStepEvent, causing it to log only once at the end instead of on each reduction step.Benefits
Statistics are now correctly printed at the end of execution.
Debug logs now correctly show each reduction step instead of just the final state.
Plugins now work as originally intended before the refactoring.
Checklist
<type>/<description>).