nit: clean batch capacity #17
@ -110,8 +110,7 @@ func (f *Format) Run() error {
|
|||||||
// update cache as paths are completed
|
// update cache as paths are completed
|
||||||
eg.Go(func() error {
|
eg.Go(func() error {
|
||||||
batchSize := 1024
|
batchSize := 1024
|
||||||
batch := make([]string, batchSize)
|
batch := make([]string, 0, batchSize)
|
||||||
batch = batch[:0]
|
|
||||||
|
|
||||||
var pending, completed, changes int
|
var pending, completed, changes int
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user