| Index: go/src/infra/gae/libs/wrapper/gae/globalinfo.go
|
| diff --git a/go/src/infra/gae/libs/wrapper/gae/globalinfo.go b/go/src/infra/gae/libs/wrapper/gae/globalinfo.go
|
| index 7bc50e99d47c4948a317d6f584bebe36949e0830..c4988e0976ed7ec23ff5b2bb515b97d70318a17d 100644
|
| --- a/go/src/infra/gae/libs/wrapper/gae/globalinfo.go
|
| +++ b/go/src/infra/gae/libs/wrapper/gae/globalinfo.go
|
| @@ -14,9 +14,9 @@ import (
|
| "infra/gae/libs/wrapper"
|
| )
|
|
|
| -// UseGI adds a wrapper.GlobalInfo implementation to context, accessible
|
| +// useGI adds a wrapper.GlobalInfo implementation to context, accessible
|
| // by wrapper.GetGI(c)
|
| -func UseGI(c context.Context) context.Context {
|
| +func useGI(c context.Context) context.Context {
|
| return wrapper.SetGIFactory(c, func(ci context.Context) wrapper.GlobalInfo {
|
| return giImpl{ctx(c).Context, ci}
|
| })
|
| @@ -65,7 +65,7 @@ func (g giImpl) Namespace(namespace string) (context.Context, error) {
|
| if err != nil {
|
| return nil, err
|
| }
|
| - return Enable(g.ctx, gaeC), nil
|
| + return context.WithValue(g.ctx, goonContextKey, gaeC), nil
|
| }
|
| func (g giImpl) PublicCertificates() ([]appengine.Certificate, error) {
|
| return appengine.PublicCertificates(g)
|
|
|