fixed doneCh buffer size
This commit is contained in:
parent
3cb1984024
commit
acfe7532d1
2
view.go
2
view.go
@ -33,7 +33,7 @@ func NewForWriter[K comparable](w io.Writer) *View[K] {
|
||||
taskMap: map[K]struct{}{},
|
||||
|
||||
reportCh: make(chan report[K], 100),
|
||||
doneCh: make(chan struct{}),
|
||||
doneCh: make(chan struct{}, 1),
|
||||
lastReports: map[K]report[K]{},
|
||||
wg: &sync.WaitGroup{},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user