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

Unified Diff: go/src/infra/gae/libs/wrapper/memory/taskqueue.go

Issue 1143053004: Simplify memory package interface. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: switch to blasters Created 5 years, 7 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: go/src/infra/gae/libs/wrapper/memory/taskqueue.go
diff --git a/go/src/infra/gae/libs/wrapper/memory/taskqueue.go b/go/src/infra/gae/libs/wrapper/memory/taskqueue.go
index da8631b4ab68c4eb0a9aa54eb9ac1b08bda0f8d2..d2c6b8ef2d4af91f928244a12d0cbd3602cf24cf 100644
--- a/go/src/infra/gae/libs/wrapper/memory/taskqueue.go
+++ b/go/src/infra/gae/libs/wrapper/memory/taskqueue.go
@@ -23,9 +23,7 @@ import (
/////////////////////////////// public functions ///////////////////////////////
-// UseTQ adds a wrapper.TaskQueue implementation to context, accessible
-// by wrapper.GetTQ(c)
-func UseTQ(c context.Context) context.Context {
+func useTQ(c context.Context) context.Context {
return wrapper.SetTQFactory(c, func(ic context.Context) wrapper.TaskQueue {
tqd := cur(ic).Get(memContextTQIdx)
var ret interface {
« no previous file with comments | « go/src/infra/gae/libs/wrapper/memory/memcache_test.go ('k') | go/src/infra/gae/libs/wrapper/memory/taskqueue_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698