refactor to context, remove sentry spans
This commit is contained in:
@@ -37,7 +37,7 @@ func (s *session) Rcpt(to string) error {
|
||||
return smtp.ErrAuthRequired
|
||||
}
|
||||
|
||||
_, ok := s.client.GetMapping(s.ctx, utils.Mailbox(to))
|
||||
_, ok := s.client.GetMapping(utils.Mailbox(to))
|
||||
if !ok {
|
||||
s.log.Debug("mapping for %s not found", to)
|
||||
return smtp.ErrAuthRequired
|
||||
|
||||
@@ -10,6 +10,6 @@ import (
|
||||
|
||||
// Client interface to send emails
|
||||
type Client interface {
|
||||
GetMapping(context.Context, string) (id.RoomID, bool)
|
||||
GetMapping(string) (id.RoomID, bool)
|
||||
Send(ctx context.Context, email *utils.Email) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user