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

Unified Diff: tokenserver/appengine/impl/delegation/warmup.go

Issue 2779323002: token-server: Warmup some local caches in /_ah/warmup. (Closed)
Patch Set: also warmup delegation config 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
Index: tokenserver/appengine/impl/delegation/warmup.go
diff --git a/tokenserver/appengine/impl/certconfig/warmup.go b/tokenserver/appengine/impl/delegation/warmup.go
similarity index 69%
copy from tokenserver/appengine/impl/certconfig/warmup.go
copy to tokenserver/appengine/impl/delegation/warmup.go
index 5c89fa3db805bf0924f6bb71588e85f508abc467..932b206352f788e915b8033ec3bcab93e115ff3e 100644
--- a/tokenserver/appengine/impl/certconfig/warmup.go
+++ b/tokenserver/appengine/impl/delegation/warmup.go
@@ -2,7 +2,7 @@
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
-package certconfig
+package delegation
import (
"golang.org/x/net/context"
@@ -11,8 +11,8 @@ import (
)
func init() {
- warmup.Register("tokenserver/appengine/impl/certconfig", func(c context.Context) error {
- // TODO
- return nil
+ warmup.Register("tokenserver/appengine/impl/delegation", func(c context.Context) error {
+ _, err := DelegationConfigLoader(c)
+ return err
})
}

Powered by Google App Engine
This is Rietveld 408576698