Skip to content

Commit 157e086

Browse files
committed
improve errors handling
1 parent 8b766f6 commit 157e086

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/notifications/notifications_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func TestSMTPDispatch(t *testing.T) {
158158
Smarthost: serpent.HostPort{Host: "localhost", Port: fmt.Sprintf("%d", mockSMTPSrv.PortNumber())},
159159
Hello: "localhost",
160160
}
161-
handler := newDispatchInterceptor(dispatch.NewSMTPHandler(cfg.SMTP, defaultHelpers(), logger.Named("smtp")))
161+
handler := newDispatchInterceptor(dispatch.NewSMTPHandler(cfg.SMTP, logger.Named("smtp")))
162162
mgr, err := notifications.NewManager(cfg, store, defaultHelpers(), createMetrics(), logger.Named("manager"))
163163
require.NoError(t, err)
164164
mgr.WithHandlers(map[database.NotificationMethod]notifications.Handler{method: handler})

coderd/notifications/utils_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ type chanHandler struct {
111111
calls chan dispatchCall
112112
}
113113

114-
func (c chanHandler) Dispatcher(payload types.MessagePayload, title, body string) (dispatch.DeliveryFunc, error) {
114+
func (c chanHandler) Dispatcher(payload types.MessagePayload, title, body string, _ template.FuncMap) (dispatch.DeliveryFunc, error) {
115115
result := make(chan dispatchResult)
116116
call := dispatchCall{
117117
payload: payload,

0 commit comments

Comments
 (0)