Chromium Code Reviews| Index: perf/go/trybot/trybot.go |
| diff --git a/perf/go/trybot/trybot.go b/perf/go/trybot/trybot.go |
| index 586e00e8b350fe9d7782366a289524f205d7d2a6..dd6c1b236ad16dd4e3dc42d3921e8d088aeab5b5 100644 |
| --- a/perf/go/trybot/trybot.go |
| +++ b/perf/go/trybot/trybot.go |
| @@ -173,8 +173,10 @@ func (p BenchByIssueSlice) Len() int { return len(p) } |
| func (p BenchByIssueSlice) Less(i, j int) bool { return p[i].IssueName < p[j].IssueName } |
| func (p BenchByIssueSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } |
| -func Init() { |
| - db.Init() |
| +// The 'local' flag indicates whether we are running locally and forces the db |
| +// package to set up the DB accordingly. |
| +func Init(local bool) { |
| + db.Init(db.ProdConnectionString(local)) |
|
jcgregorio
2014/09/30 19:12:03
Can we move the call to db.Init() into skiaperf/ma
stephana
2014/09/30 19:52:09
Done.
|
| var err error |
| st, err = storage.New(util.NewTimeoutClient()) |
| if err != nil { |