From 1691768fb918b0c7efc009d5059653c07ce64db9 Mon Sep 17 00:00:00 2001 From: Danny Kopping Date: Fri, 12 Jul 2024 13:51:13 +0200 Subject: [PATCH] chore: use store enqueuer with external provisioners (#13881) --- enterprise/coderd/provisionerdaemons.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enterprise/coderd/provisionerdaemons.go b/enterprise/coderd/provisionerdaemons.go index 64b3933b44..34bacd1d22 100644 --- a/enterprise/coderd/provisionerdaemons.go +++ b/enterprise/coderd/provisionerdaemons.go @@ -20,6 +20,7 @@ import ( "storj.io/drpc/drpcserver" "cdr.dev/slog" + "github.com/coder/coder/v2/coderd" "github.com/coder/coder/v2/coderd/database" "github.com/coder/coder/v2/coderd/database/db2sdk" @@ -27,7 +28,6 @@ import ( "github.com/coder/coder/v2/coderd/database/dbtime" "github.com/coder/coder/v2/coderd/httpapi" "github.com/coder/coder/v2/coderd/httpmw" - "github.com/coder/coder/v2/coderd/notifications" "github.com/coder/coder/v2/coderd/provisionerdserver" "github.com/coder/coder/v2/coderd/rbac" "github.com/coder/coder/v2/coderd/rbac/policy" @@ -337,7 +337,7 @@ func (api *API) provisionerDaemonServe(rw http.ResponseWriter, r *http.Request) ExternalAuthConfigs: api.ExternalAuthConfigs, OIDCConfig: api.OIDCConfig, }, - notifications.NewNoopEnqueuer(), + api.NotificationsEnqueuer, ) if err != nil { if !xerrors.Is(err, context.Canceled) {