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

Unified Diff: filter/count/mod.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 | « filter/count/mail.go ('k') | filter/count/rds.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/mod.go
diff --git a/filter/count/mod.go b/filter/count/mod.go
index c3c9d5d8e9fe485ee84c23f95d41cc480a168f6e..f807263cc700d2f9bf72eaa220553a59398348bc 100644
--- a/filter/count/mod.go
+++ b/filter/count/mod.go
@@ -24,10 +24,10 @@ type ModuleCounter struct {
type modCounter struct {
c *ModuleCounter
- mod module.Interface
+ mod module.RawInterface
}
-var _ module.Interface = (*modCounter)(nil)
+var _ module.RawInterface = (*modCounter)(nil)
func (m *modCounter) List() ([]string, error) {
ret, err := m.mod.List()
@@ -64,7 +64,7 @@ func (m *modCounter) Stop(mod, ver string) error {
// FilterModule installs a counter Module filter in the context.
func FilterModule(c context.Context) (context.Context, *ModuleCounter) {
state := &ModuleCounter{}
- return module.AddFilters(c, func(ic context.Context, mod module.Interface) module.Interface {
+ return module.AddFilters(c, func(ic context.Context, mod module.RawInterface) module.RawInterface {
return &modCounter{state, mod}
}), state
}
« no previous file with comments | « filter/count/mail.go ('k') | filter/count/rds.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698