Skip to content

Commit

Permalink
Fix some warning issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alinz committed Apr 18, 2024
1 parent d7a84bc commit 823acbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/track/track_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestTrack(t *testing.T) {
start := time.Now()
fn(key, func() {
defer wg.Done()
fmt.Println("key Called on", time.Now().Sub(start).Seconds())
fmt.Println("key Called on", time.Since(start).Seconds())
})

wg.Wait()
Expand Down Expand Up @@ -83,14 +83,14 @@ func TestTrackUnderLoad(t *testing.T) {
wg.Add(workerCount)

for i := 0; i < workerCount; i++ {
go func() {
go func(i int) {
defer wg.Done()
for j := 0; j < workerCalls; j++ {
fn("key", func() {
fmt.Printf("@@@@@key from %d Called on %d\n", i, j)
})
}
}()
}(i)
}

wg.Wait()
Expand Down

0 comments on commit 823acbc

Please sign in to comment.