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

Unified Diff: filter/count/rds.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Created 4 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
Index: filter/count/rds.go
diff --git a/filter/count/rds.go b/filter/count/rds.go
index 418878fdf3927eb2705f03d0ed34bd10ed66e2ce..cc55ad3ceea17fbb3b74a3822a2bca407c7e391d 100644
--- a/filter/count/rds.go
+++ b/filter/count/rds.go
@@ -64,8 +64,15 @@ func (r *dsCounter) PutMulti(keys []*ds.Key, vals []ds.PropertyMap, cb ds.NewKey
return r.c.PutMulti.upFilterStop(r.ds.PutMulti(keys, vals, cb))
}
-func (r *dsCounter) Testable() ds.Testable {
- return r.ds.Testable()
+func (r *dsCounter) CurrentTransaction() ds.Transaction {
+ return r.ds.CurrentTransaction()
+}
+func (r *dsCounter) WithTransaction(t ds.Transaction) context.Context {
+ return r.ds.WithTransaction(t)
+}
+
+func (r *dsCounter) GetTestable() ds.Testable {
+ return r.ds.GetTestable()
}
// FilterRDS installs a counter datastore filter in the context.

Powered by Google App Engine
This is Rietveld 408576698