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

Unified Diff: appengine/logdog/coordinator/service.go

Issue 1910633006: LogDog: Support per-namespace expired archival. (Closed) Base URL: https://github.com/luci/luci-go@logdog-coordinator-svcdec
Patch Set: Update another test. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/logdog/coordinator/project.go ('k') | common/api/logdog_coordinator/services/v1/pb.discovery.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/logdog/coordinator/service.go
diff --git a/appengine/logdog/coordinator/service.go b/appengine/logdog/coordinator/service.go
index fad11a4e4da0f3f3c3b6936a53b6ac6b9e122745..6481100d5171085b2c0e1b685b7b42111bb1c199 100644
--- a/appengine/logdog/coordinator/service.go
+++ b/appengine/logdog/coordinator/service.go
@@ -59,11 +59,17 @@ type Services interface {
// instance into its Context.
func WithProdServices(h middleware.Handler) middleware.Handler {
return func(c context.Context, rw http.ResponseWriter, r *http.Request, params httprouter.Params) {
- c = WithServices(c, &prodServices{})
+ c = UseProdServices(c)
h(c, rw, r, params)
}
}
+// UseProdServices installs production Services instance into the supplied
+// Context.
+func UseProdServices(c context.Context) context.Context {
+ return WithServices(c, &prodServices{})
+}
+
// Request is a Service context for a given request.
type prodServices struct {
sync.Mutex
« no previous file with comments | « appengine/logdog/coordinator/project.go ('k') | common/api/logdog_coordinator/services/v1/pb.discovery.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698