mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
chore: use store enqueuer with external provisioners (#13881)
This commit is contained in:
@ -20,6 +20,7 @@ import (
|
|||||||
"storj.io/drpc/drpcserver"
|
"storj.io/drpc/drpcserver"
|
||||||
|
|
||||||
"cdr.dev/slog"
|
"cdr.dev/slog"
|
||||||
|
|
||||||
"github.com/coder/coder/v2/coderd"
|
"github.com/coder/coder/v2/coderd"
|
||||||
"github.com/coder/coder/v2/coderd/database"
|
"github.com/coder/coder/v2/coderd/database"
|
||||||
"github.com/coder/coder/v2/coderd/database/db2sdk"
|
"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/database/dbtime"
|
||||||
"github.com/coder/coder/v2/coderd/httpapi"
|
"github.com/coder/coder/v2/coderd/httpapi"
|
||||||
"github.com/coder/coder/v2/coderd/httpmw"
|
"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/provisionerdserver"
|
||||||
"github.com/coder/coder/v2/coderd/rbac"
|
"github.com/coder/coder/v2/coderd/rbac"
|
||||||
"github.com/coder/coder/v2/coderd/rbac/policy"
|
"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,
|
ExternalAuthConfigs: api.ExternalAuthConfigs,
|
||||||
OIDCConfig: api.OIDCConfig,
|
OIDCConfig: api.OIDCConfig,
|
||||||
},
|
},
|
||||||
notifications.NewNoopEnqueuer(),
|
api.NotificationsEnqueuer,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !xerrors.Is(err, context.Canceled) {
|
if !xerrors.Is(err, context.Canceled) {
|
||||||
|
Reference in New Issue
Block a user