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

Unified Diff: impl/dummy/dummy.go

Issue 1292913002: Split off serialization and key functions to their own packages. (Closed) Base URL: https://github.com/luci/gae.git@make_queries_better
Patch Set: rebase Created 5 years, 4 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 | « filter/dscache/support.go ('k') | impl/memory/datastore.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/dummy/dummy.go
diff --git a/impl/dummy/dummy.go b/impl/dummy/dummy.go
index 6fd3fdb3a793c198713000be4b25662169918540..d2b34811dc7040419a77a43e388fa569425526bb 100644
--- a/impl/dummy/dummy.go
+++ b/impl/dummy/dummy.go
@@ -11,6 +11,7 @@ import (
"time"
"github.com/luci/gae/service/datastore"
+ "github.com/luci/gae/service/datastore/dskey"
"github.com/luci/gae/service/info"
"github.com/luci/gae/service/memcache"
"github.com/luci/gae/service/taskqueue"
@@ -65,7 +66,7 @@ func ni() error {
type ds struct{}
func (ds) NewKey(kind string, sid string, iid int64, par datastore.Key) datastore.Key {
- return datastore.NewKey("dummy~appid", "", kind, sid, iid, par)
+ return dskey.New("dummy~appid", "", kind, sid, iid, par)
}
func (ds) DecodeKey(string) (datastore.Key, error) { panic(ni()) }
func (ds) PutMulti([]datastore.Key, []datastore.PropertyMap, datastore.PutMultiCB) error {
« no previous file with comments | « filter/dscache/support.go ('k') | impl/memory/datastore.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698