removed implicit task adding
This commit is contained in:
parent
d438d90578
commit
ea2554519f
5
view.go
5
view.go
@ -53,8 +53,11 @@ func (v *View[K]) consumeReports(printReports bool) {
|
||||
}()
|
||||
|
||||
for status := range v.reportCh {
|
||||
if _, ok := v.taskMap[status.ID]; !ok {
|
||||
panic(fmt.Sprintf("received report for unknown task (forgot to call View.Add()?): %v", v))
|
||||
}
|
||||
|
||||
v.lastReports[status.ID] = status
|
||||
v.Add(status.ID)
|
||||
|
||||
if printReports {
|
||||
v.print()
|
||||
|
Loading…
Reference in New Issue
Block a user