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

Unified Diff: impl/memory/memcache.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: Lightning talk licenses. Created 4 years, 3 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 | « impl/memory/mail_test.go ('k') | impl/memory/memcache_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/memcache.go
diff --git a/impl/memory/memcache.go b/impl/memory/memcache.go
index 59660ac8340d3edb71cd9ac67379eb15e98aa616..9e2d55c84a72912c5dd9d27f16a4712e6867f732 100644
--- a/impl/memory/memcache.go
+++ b/impl/memory/memcache.go
@@ -9,11 +9,13 @@ import (
"sync"
"time"
- "golang.org/x/net/context"
-
+ "github.com/luci/gae/service/info"
mc "github.com/luci/gae/service/memcache"
+
"github.com/luci/luci-go/common/clock"
"github.com/luci/luci-go/common/errors"
+
+ "golang.org/x/net/context"
)
type mcItem struct {
@@ -165,7 +167,7 @@ func useMC(c context.Context) context.Context {
lck.Lock()
defer lck.Unlock()
- ns, _ := curGID(ic).getNamespace()
+ ns := info.GetNamespace(ic)
mcd, ok := mcdMap[ns]
if !ok {
mcd = &memcacheData{items: map[string]*mcDataItem{}}
« no previous file with comments | « impl/memory/mail_test.go ('k') | impl/memory/memcache_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698