fix: correct event handler registration in plugins #29

Merged
mvhutz merged 1 commits from fix/plugin-event-handlers into main 2026-01-14 00:35:03 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ef5b94545f - Show all commits

View File

@@ -14,7 +14,7 @@ type Logs struct {
func NewLogs(logger *slog.Logger, process *engine.Engine) *Logs {
plugin := &Logs{logger, process}
process.On(engine.StopEvent, plugin.Step)
process.On(engine.StepEvent, plugin.Step)
return plugin
}

View File

@@ -20,7 +20,7 @@ func NewStatistics(process *engine.Engine) *Statistics {
plugin := &Statistics{}
process.On(engine.StartEvent, plugin.Start)
process.On(engine.StepEvent, plugin.Step)
process.On(engine.StopEvent, plugin.Step)
process.On(engine.StopEvent, plugin.Stop)
return plugin
}