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

Unified Diff: filter/count/mail.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/gi.go ('k') | filter/count/mod.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/mail.go
diff --git a/filter/count/mail.go b/filter/count/mail.go
index 04e07a64e154211528b4e0ac59b5cba4682c0bfe..896b47f149a43e5117216ec0ac2aa669557e68ce 100644
--- a/filter/count/mail.go
+++ b/filter/count/mail.go
@@ -18,10 +18,10 @@ type MailCounter struct {
type mailCounter struct {
c *MailCounter
- m mail.Interface
+ m mail.RawInterface
}
-var _ mail.Interface = (*mailCounter)(nil)
+var _ mail.RawInterface = (*mailCounter)(nil)
func (m *mailCounter) Send(msg *mail.Message) error {
return m.c.Send.up(m.m.Send(msg))
@@ -31,14 +31,14 @@ func (m *mailCounter) SendToAdmins(msg *mail.Message) error {
return m.c.SendToAdmins.up(m.m.SendToAdmins(msg))
}
-func (m *mailCounter) Testable() mail.Testable {
- return m.m.Testable()
+func (m *mailCounter) GetTestable() mail.Testable {
+ return m.m.GetTestable()
}
// FilterMail installs a counter Mail filter in the context.
func FilterMail(c context.Context) (context.Context, *MailCounter) {
state := &MailCounter{}
- return mail.AddFilters(c, func(ic context.Context, u mail.Interface) mail.Interface {
+ return mail.AddFilters(c, func(ic context.Context, u mail.RawInterface) mail.RawInterface {
return &mailCounter{state, u}
}), state
}
« no previous file with comments | « filter/count/gi.go ('k') | filter/count/mod.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698