mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 17:46:52 +01:00
apply go fix for Go 1.26 (#1867)
* apply `go fix` for Go 1.26 This applies the `go fix` recommendations for go1.26 * for all of ./...
This commit is contained in:
1 parent
89178f45ba
commit
0dc8a28d1f
76 files changed
+80
-161
No files matched your search
@@ -108,7 +108,7 @@ func TestUserDeviceReadersConcurrentRace(t *testing.T) {
|
||||
var wg sync.WaitGroup
|
||||
run := func(idx int) {
|
||||
defer wg.Done()
|
||||
for i := 0; i < iterations; i++ {
|
||||
for range iterations {
|
||||
pkts, err := readers[idx].Read()
|
||||
if err != nil {
|
||||
errs <- err
|
||||
@@ -136,7 +136,7 @@ func TestUserDeviceReadersConcurrentRace(t *testing.T) {
|
||||
// waiting reader's private buffer, so reusing buf between writes is safe.
|
||||
go func() {
|
||||
buf := make([]byte, 32)
|
||||
for i := 0; i < 2*iterations; i++ {
|
||||
for i := range 2 * iterations {
|
||||
for j := range buf {
|
||||
buf[j] = byte(i + j)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user