| OLD | NEW |
| 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 } |
| OLD | NEW |