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

Unified Diff: go/src/infra/gae/libs/wrapper/memory/globalinfo.go

Issue 1143053004: Simplify memory package interface. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: switch to blasters Created 5 years, 7 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 | « go/src/infra/gae/libs/wrapper/memory/datastore_test.go ('k') | go/src/infra/gae/libs/wrapper/memory/key.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/wrapper/memory/globalinfo.go
diff --git a/go/src/infra/gae/libs/wrapper/memory/globalinfo.go b/go/src/infra/gae/libs/wrapper/memory/globalinfo.go
index 2d3027271e6d9ccf56eb3412fcb4a25d7c2c7329..397e9def6820e15582ff895a313e3b2004469e06 100644
--- a/go/src/infra/gae/libs/wrapper/memory/globalinfo.go
+++ b/go/src/infra/gae/libs/wrapper/memory/globalinfo.go
@@ -18,9 +18,9 @@ func curGID(c context.Context) *globalInfoData {
return c.Value(giContextKey).(*globalInfoData)
}
-// UseGI adds a wrapper.GlobalInfo context, accessible
+// useGI adds a wrapper.GlobalInfo context, accessible
// by wrapper.GetGI(c)
-func UseGI(c context.Context) context.Context {
+func useGI(c context.Context) context.Context {
return wrapper.SetGIFactory(c, func(ic context.Context) wrapper.GlobalInfo {
return &giImpl{wrapper.DummyGI(), curGID(ic), ic}
})
« no previous file with comments | « go/src/infra/gae/libs/wrapper/memory/datastore_test.go ('k') | go/src/infra/gae/libs/wrapper/memory/key.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698