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

Unified Diff: service/datastore/context.go

Issue 2353063004: Add "MkKeyContext" KeyContext generation function. (Closed)
Patch Set: Created 4 years, 3 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 | « service/datastore/checkfilter_test.go ('k') | service/datastore/context_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/context.go
diff --git a/service/datastore/context.go b/service/datastore/context.go
index 8557a5f5fb77cc593a480bfa375f1db31a8826d3..2d7ff6070505ce8bf2e08310bbde6bf8eae10c76 100644
--- a/service/datastore/context.go
+++ b/service/datastore/context.go
@@ -90,5 +90,5 @@ func AddRawFilters(c context.Context, filts ...RawFilter) context.Context {
// installed in the supplied Context.
func GetKeyContext(c context.Context) KeyContext {
ri := info.Raw(c)
- return KeyContext{ri.FullyQualifiedAppID(), ri.GetNamespace()}
+ return MkKeyContext(ri.FullyQualifiedAppID(), ri.GetNamespace())
}
« no previous file with comments | « service/datastore/checkfilter_test.go ('k') | service/datastore/context_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698