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

Unified Diff: milo/appengine/settings/config.go

Issue 2275123002: Milo: pRPC endpoint for getting Buildbot master data (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Renamed stuff Created 4 years, 3 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/settings/acl_test.go ('k') | milo/appengine/settings/config_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/settings/config.go
diff --git a/milo/appengine/settings/config.go b/milo/appengine/settings/config.go
index 8a6cc8764bdcf42e384f0dcb4a99786f7c3c6973..08e460cddbaa8c526d433dab53efba5e34da5920 100644
--- a/milo/appengine/settings/config.go
+++ b/milo/appengine/settings/config.go
@@ -30,7 +30,7 @@ type Project struct {
func UpdateHandler(ctx *router.Context) {
c, h := ctx.Context, ctx.Writer
- err := update(c)
+ err := Update(c)
if err != nil {
logging.WithError(err).Errorf(c, "Update Handler encountered error")
h.WriteHeader(500)
@@ -42,7 +42,7 @@ func UpdateHandler(ctx *router.Context) {
// Update internal configuration based off luci-cfg.
// update updates Milo's configuration based off luci config. This includes
// scanning through all project and extract all console configs.
-func update(c context.Context) error {
+func Update(c context.Context) error {
cfgName := info.Get(c).AppID() + ".cfg"
cfgs, err := config.GetProjectConfigs(c, cfgName, false)
if err != nil {
« no previous file with comments | « milo/appengine/settings/acl_test.go ('k') | milo/appengine/settings/config_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698