refactor: apply go fix modernizers for Go 1.26
Automated fixes: interface{} → any, range-over-int, t.Context(),
wg.Go(), strings.SplitSeq, strings.Builder, slices.Contains,
maps helpers, min/max builtins.
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
9bf439898a
commit
eb273d447b
1 changed files with 2 additions and 2 deletions
|
|
@ -503,7 +503,7 @@ func TestJournal_Replay_Good_ConcurrentWrites(t *testing.T) {
|
|||
|
||||
// Write 20 entries concurrently.
|
||||
done := make(chan struct{}, 20)
|
||||
for i := 0; i < 20; i++ {
|
||||
for i := range 20 {
|
||||
go func(idx int) {
|
||||
signal := &PipelineSignal{
|
||||
EpicNumber: 1, ChildNumber: idx, PRNumber: idx,
|
||||
|
|
@ -523,7 +523,7 @@ func TestJournal_Replay_Good_ConcurrentWrites(t *testing.T) {
|
|||
}(i)
|
||||
}
|
||||
|
||||
for i := 0; i < 20; i++ {
|
||||
for range 20 {
|
||||
<-done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue