Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2522)

Unified Diff: datahopper/go/datahopper/main.go

Issue 813443002: Overhaul database package (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Unskip the CT GS tests Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: datahopper/go/datahopper/main.go
diff --git a/datahopper/go/datahopper/main.go b/datahopper/go/datahopper/main.go
index 101db8ee7f1f6388ed3c6db8883119fa209a78fc..e6eecce90fc8174869c46144746adb6acd0a5f1c 100644
--- a/datahopper/go/datahopper/main.go
+++ b/datahopper/go/datahopper/main.go
@@ -14,7 +14,6 @@ import (
"skia.googlesource.com/buildbot.git/datahopper/go/autoroll_ingest"
"skia.googlesource.com/buildbot.git/go/buildbot"
"skia.googlesource.com/buildbot.git/go/common"
- "skia.googlesource.com/buildbot.git/go/database"
"skia.googlesource.com/buildbot.git/go/gitinfo"
"skia.googlesource.com/buildbot.git/go/metadata"
)
@@ -62,13 +61,7 @@ func main() {
go autoroll_ingest.LoadAutoRollData(dbClient, *workdir)
go func() {
// Initialize the buildbot database.
- var conf *database.DatabaseConfig
- if *testing {
- conf = buildbot.LocalMySQLTestDatabaseConfig("test_user", "")
- } else {
- conf = buildbot.ProdDatabaseConfig(false)
- }
- if err := buildbot.InitDB(conf); err != nil {
+ if err := buildbot.InitDB(*testing); err != nil {
glog.Fatal(err)
}
// Create the Git repo.

Powered by Google App Engine
This is Rietveld 408576698