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

Unified Diff: impl/memory/datastore.go

Issue 2492053003: Fix 'impl/memory' context key. (Closed)
Patch Set: Created 4 years, 1 month 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 | « impl/memory/context.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/datastore.go
diff --git a/impl/memory/datastore.go b/impl/memory/datastore.go
index c01b4d4120a9f547e5de0d9675524ddc3f9198ee..0915a7bfc93bff24e519e3d80237d5ed7c97443c 100644
--- a/impl/memory/datastore.go
+++ b/impl/memory/datastore.go
@@ -219,7 +219,7 @@ func (*txnDsImpl) RunInTransaction(func(c context.Context) error, *ds.Transactio
}
func (d *txnDsImpl) WithoutTransaction() context.Context {
- return context.WithValue(d, currentTxnKey, nil)
+ return context.WithValue(d, &currentTxnKey, nil)
}
func (d *txnDsImpl) CurrentTransaction() ds.Transaction {
« no previous file with comments | « impl/memory/context.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698