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

Side by Side Diff: tokenserver/appengine/impl/certconfig/warmup.go

Issue 2779323002: token-server: Warmup some local caches in /_ah/warmup. (Closed)
Patch Set: also warmup delegation config Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The LUCI Authors. All rights reserved. 1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package certconfig 5 package certconfig
6 6
7 import ( 7 import (
8 "golang.org/x/net/context" 8 "golang.org/x/net/context"
9 9
10 "github.com/luci/luci-go/server/warmup" 10 "github.com/luci/luci-go/server/warmup"
11 ) 11 )
12 12
13 func init() { 13 func init() {
14 warmup.Register("tokenserver/appengine/impl/certconfig", func(c context. Context) error { 14 warmup.Register("tokenserver/appengine/impl/certconfig", func(c context. Context) error {
15 » » // TODO 15 » » // Warmup ID -> CN mapping. Ignore result (it may be "no such CA "), this is
16 » » // fine, the mapping will be preloaded.
17 » » GetCAByUniqueID(c, 0)
16 return nil 18 return nil
17 }) 19 })
18 } 20 }
OLDNEW
« no previous file with comments | « tokenserver/appengine/impl/certconfig/rpc_list_cas.go ('k') | tokenserver/appengine/impl/delegation/config.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698