File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ func BenchmarkTaskRegistry_RegisterTask(b *testing.B) {
470470 b .ResetTimer ()
471471 for i := 0 ; i < b .N ; i ++ {
472472 taskType := fmt .Sprintf ("benchmark_task_%d" , i )
473- registry .RegisterTask (taskType , constructor )
473+ _ = registry .RegisterTask (taskType , constructor )
474474 }
475475}
476476
@@ -481,7 +481,7 @@ func BenchmarkTaskRegistry_GetConstructor(b *testing.B) {
481481 // Pre-register some tasks
482482 for i := range 1000 {
483483 taskType := fmt .Sprintf ("benchmark_task_%d" , i )
484- registry .RegisterTask (taskType , constructor )
484+ _ = registry .RegisterTask (taskType , constructor )
485485 }
486486
487487 b .ResetTimer ()
@@ -498,7 +498,7 @@ func BenchmarkTaskRegistry_ConcurrentAccess(b *testing.B) {
498498 // Pre-register some tasks
499499 for i := range 100 {
500500 taskType := fmt .Sprintf ("concurrent_benchmark_task_%d" , i )
501- registry .RegisterTask (taskType , constructor )
501+ _ = registry .RegisterTask (taskType , constructor )
502502 }
503503
504504 b .ResetTimer ()
You can’t perform that action at this time.
0 commit comments