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

Unified Diff: filter/featureBreaker/gi.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/gi.go
diff --git a/filter/featureBreaker/gi.go b/filter/featureBreaker/gi.go
index 291e001d20cf2568085ba06224cda4e603e25b5a..ecb26000df33c61a5df11f4758fdd0659d21bf3b 100644
--- a/filter/featureBreaker/gi.go
+++ b/filter/featureBreaker/gi.go
@@ -34,10 +34,10 @@ func (g *infoState) ServiceAccount() (ret string, err error) {
return
}
-func (g *infoState) Namespace(namespace string) (ret context.Context, err error) {
- err = g.run(func() (err error) {
- ret, err = g.RawInterface.Namespace(namespace)
- return
+func (g *infoState) Namespace(namespace string) (c context.Context, err error) {
+ err = g.run(func() error {
+ c, err = g.RawInterface.Namespace(namespace)
iannucci 2016/09/16 01:01:13 I think this is wrong now; this err was intentiona
dnj 2016/09/16 05:44:42 Done.
+ return err
})
return
}

Powered by Google App Engine
This is Rietveld 408576698