add llm processing notification
This commit is contained in:
@@ -190,6 +190,7 @@ func (d *Daemon) toggle() {
|
||||
|
||||
go d.notifier.Send(notify.MsgRecordingStarted)
|
||||
go d.monitorPipelineErrors(p)
|
||||
go d.monitorPipelineNotifications(p)
|
||||
|
||||
case pipeline.Recording:
|
||||
d.stopPipeline()
|
||||
@@ -240,3 +241,15 @@ func (d *Daemon) monitorPipelineErrors(p pipeline.Pipeline) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (d *Daemon) monitorPipelineNotifications(p pipeline.Pipeline) {
|
||||
notifyCh := p.GetNotifyCh()
|
||||
for {
|
||||
select {
|
||||
case mt := <-notifyCh:
|
||||
d.notifier.Send(mt)
|
||||
case <-d.ctx.Done():
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user