chore: build with Go 1.26; use Go 1.25 features (#10570)
WaitGroup.Go and built-in gomaxprocs handling. Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -863,12 +863,10 @@ func TestConcurrentUpdate(t *testing.T) {
|
||||
const n = 32
|
||||
res := make([]error, n)
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(n)
|
||||
for i := range n {
|
||||
go func() {
|
||||
wg.Go(func() {
|
||||
res[i] = db.Update(folderID, protocol.DeviceID{byte(i), byte(i), byte(i)}, files)
|
||||
wg.Done()
|
||||
}()
|
||||
})
|
||||
}
|
||||
wg.Wait()
|
||||
for i, err := range res {
|
||||
|
||||
Reference in New Issue
Block a user