Skip to content

Commit

Permalink
use range int syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Oct 9, 2024
1 parent 869f984 commit 4f42a17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func RunSyncSet(logger *log.Logger, source Source, destination Destination, conf

results := destination.ApplyChangeSet(changeSet, eventLog)

for i := 0; i < 100; i++ {
for range 100 {
time.Sleep(time.Millisecond * 10)
if len(eventLog) == 0 {
break
Expand Down
2 changes: 1 addition & 1 deletion internal/internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func TestBatchTimer(t *testing.T) {
bTimer := NewBatchTimer(testRun.batchSize, testRun.secondsPerBatch)
startTime := time.Now()

for i := 0; i < testRun.numberOfCalls; i++ {
for range testRun.numberOfCalls {
DoNothing()
bTimer.WaitOnBatch()
}
Expand Down

0 comments on commit 4f42a17

Please sign in to comment.