chore: use store enqueuer with external provisioners (#13881)

This commit is contained in:
Danny Kopping
2024-07-12 13:51:13 +02:00
committed by GitHub
parent de2585b0b6
commit 1691768fb9

View File

@ -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) {