Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doctests/cmds_hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func ExampleClient_hset() {

keys := make([]string, 0, len(res6))

for key, _ := range res6 {
for key := range res6 {
keys = append(keys, key)
}

Expand Down Expand Up @@ -186,7 +186,7 @@ func ExampleClient_hgetall() {

keys := make([]string, 0, len(hGetAllResult2))

for key, _ := range hGetAllResult2 {
for key := range hGetAllResult2 {
keys = append(keys, key)
}

Expand Down
4 changes: 2 additions & 2 deletions hset_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func benchmarkHSETOperations(b *testing.B, rdb *redis.Client, ctx context.Contex
b.Fatalf("HSET operation failed: %v", err)
}
}
totalTimes = append(totalTimes, time.Now().Sub(startTime))
totalTimes = append(totalTimes, time.Since(startTime))
}

// Stop the timer to calculate metrics
Expand Down Expand Up @@ -164,7 +164,7 @@ func benchmarkHSETPipelined(b *testing.B, rdb *redis.Client, ctx context.Context
if err != nil {
b.Fatalf("Pipeline execution failed: %v", err)
}
totalTimes = append(totalTimes, time.Now().Sub(startTime))
totalTimes = append(totalTimes, time.Since(startTime))
}

b.StopTimer()
Expand Down
7 changes: 0 additions & 7 deletions maintnotifications/e2e/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ func containsSubstring(s, substr string) bool {
return false
}

func min(a, b int) int {
if a < b {
return a
}
return b
}

func printLog(group string, isError bool, format string, args ...interface{}) {
_, filename, line, _ := runtime.Caller(2)
filename = filepath.Base(filename)
Expand Down
Loading