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

Unified Diff: milo/appengine/swarming/buildinfo.go

Issue 2765383002: Milo: Move instance configuration to luci-config (Closed)
Patch Set: Review Created 3 years, 9 months 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
« no previous file with comments | « milo/appengine/swarming/build.go ('k') | milo/appengine/swarming/html.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/swarming/buildinfo.go
diff --git a/milo/appengine/swarming/buildinfo.go b/milo/appengine/swarming/buildinfo.go
index c93151697f4a0da807933bf1bbec84e78c7f8ed7..b087f904893e5f17a332c75643a6dadbb7f67afd 100644
--- a/milo/appengine/swarming/buildinfo.go
+++ b/milo/appengine/swarming/buildinfo.go
@@ -37,11 +37,10 @@ type BuildInfoProvider struct {
}
func (p *BuildInfoProvider) newSwarmingService(c context.Context, host string) (swarmingService, error) {
- fn := p.swarmingServiceFunc
- if fn == nil {
- fn = getSwarmingService
+ if p.swarmingServiceFunc == nil {
+ return newProdService(c, host)
}
- return fn(c, host)
+ return p.swarmingServiceFunc(c, host)
}
// GetBuildInfo resolves a Milo protobuf Step for a given Swarming task.
« no previous file with comments | « milo/appengine/swarming/build.go ('k') | milo/appengine/swarming/html.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698