mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 21:34:38 +03:00
Run modernize to rewrite some older go constructs to newer ones
Mostly using slice.Sort, using min/max, slices.Concat, range of int and fmt.Appendf for byte slices instead of strings.
This commit is contained in:
@ -50,7 +50,7 @@ func NewWorkQueue[T, R any](procs, size int, preparer func(in, out chan Work[T,
|
||||
}
|
||||
|
||||
wq.wg.Add(procs)
|
||||
for i := 0; i < procs; i++ {
|
||||
for range procs {
|
||||
go func() {
|
||||
defer wq.wg.Done()
|
||||
preparer(wq.work, wq.done)
|
||||
|
Reference in New Issue
Block a user