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

Unified Diff: impl/cloud/context.go

Issue 2179843004: Add an option to install just Cloud Datastore. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Derp Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/cloud/context.go
diff --git a/impl/cloud/context.go b/impl/cloud/context.go
index 527f8e3d149fabf23a4616b61726e3381266288f..001f605955a7aea4f507f30919566c4445985b6a 100644
--- a/impl/cloud/context.go
+++ b/impl/cloud/context.go
@@ -18,9 +18,13 @@ import (
//
// This is built around the ability to use cloud datastore.
func Use(c context.Context, client *datastore.Client) context.Context {
+ return UseDS(useInfo(c), client)
+}
+
+// UseDS installs the cloud datastore implementation into the supplied Context.
+func UseDS(c context.Context, client *datastore.Client) context.Context {
cds := cloudDatastore{
client: client,
}
-
- return cds.use(useInfo(c))
+ return cds.use(c)
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698