Commit f3ae077b authored by luxq's avatar luxq

update

parent c097f428
......@@ -339,7 +339,7 @@ func BenchmarkDbWorker_FindWorkerByRunningModelId(b *testing.B) {
if w, err := db.FindWorkerByRunningModelId(context.Background(), runningModelId); err != nil {
panic(fmt.Sprintf("find worker failed with err:%s", err))
} else if len(w) == 0 {
b.Logf("FindWorkerByRunningModelId find %d with id %d\n", len(w), runningModelId)
b.Logf("FindWorkerByRunningModelId find %d with id %s\n", len(w), runningModelId)
}
}
}
......@@ -357,7 +357,7 @@ func BenchmarkDbWorker_FindWorkerByRunningModelId_Parallel(b *testing.B) {
if w, err := db.FindWorkerByRunningModelId(context.Background(), runningModelId); err != nil {
panic(fmt.Sprintf("find worker failed with err:%s", err))
} else if len(w) == 0 {
b.Logf("FindWorkerByRunningModelId find %d with id %d\n", len(w), runningModelId)
b.Logf("FindWorkerByRunningModelId find %d with id %s\n", len(w), runningModelId)
}
}
})
......@@ -376,7 +376,7 @@ func BenchmarkDbWorker_FindWorkerByInstalledModelId(b *testing.B) {
if w, err := db.FindWorkerByInstalledModelId(context.Background(), installedModelId); err != nil {
panic(fmt.Sprintf("find worker failed with err:%s", err))
} else if len(w) == 0 {
b.Logf("FindWorkerByInstalledModelId find %d with id %d\n", len(w), installedModelId)
b.Logf("FindWorkerByInstalledModelId find %d with id %s\n", len(w), installedModelId)
}
}
}
......@@ -394,7 +394,7 @@ func BenchmarkDbWorker_FindWorkerByInstalledModelId_Parallel(b *testing.B) {
if w, err := db.FindWorkerByInstalledModelId(context.Background(), installedModelId); err != nil {
panic(fmt.Sprintf("find worker failed with err:%s", err))
} else if len(w) == 0 {
b.Logf("FindWorkerByInstalledModelId find %d with id %d\n", len(w), installedModelId)
b.Logf("FindWorkerByInstalledModelId find %d with id %s\n", len(w), installedModelId)
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment