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

Unified Diff: filter/featureBreaker/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/featureBreaker/rds.go
diff --git a/filter/featureBreaker/rds.go b/filter/featureBreaker/rds.go
index 4523fc297f0147108d2eff75b9fe3cb9426d3eed..ca7ce302517772e69d3d7e46cda684e927e3c7f8 100644
--- a/filter/featureBreaker/rds.go
+++ b/filter/featureBreaker/rds.go
@@ -73,8 +73,16 @@ func (r *dsState) PutMulti(keys []*ds.Key, vals []ds.PropertyMap, cb ds.NewKeyCB
})
}
-func (r *dsState) Testable() ds.Testable {
- return r.rds.Testable()
+func (r *dsState) WithTransaction(t ds.Transaction) context.Context {
+ return r.rds.WithTransaction(t)
+}
+
+func (r *dsState) CurrentTransaction() ds.Transaction {
+ return r.rds.CurrentTransaction()
+}
+
+func (r *dsState) GetTestable() ds.Testable {
+ return r.rds.GetTestable()
}
// FilterRDS installs a featureBreaker datastore filter in the context.

Powered by Google App Engine
This is Rietveld 408576698