fixed high cpu due to unproerly closed channel

This commit is contained in:
2023-01-13 10:15:16 +01:00
parent 00645e2370
commit d2f1bfa3bf

View File

@@ -130,7 +130,6 @@ func (p *Process) Start(path, filename string) {
go func() {
defer r.Close()
defer p.Complete()
defer close(eventChan)
for scan.Scan() {
eventChan <- scan.Text()
}