File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ import (
37
37
"tailscale.com/util/singleflight"
38
38
39
39
"cdr.dev/slog"
40
+ "github.com/coder/serpent"
41
+
40
42
agentproto "github.com/coder/coder/v2/agent/proto"
41
43
"github.com/coder/coder/v2/buildinfo"
42
44
_ "github.com/coder/coder/v2/coderd/apidoc" // Used for swagger docs.
@@ -76,7 +78,6 @@ import (
76
78
"github.com/coder/coder/v2/provisionersdk"
77
79
"github.com/coder/coder/v2/site"
78
80
"github.com/coder/coder/v2/tailnet"
79
- "github.com/coder/serpent"
80
81
)
81
82
82
83
// We must only ever instantiate one httpSwagger.Handler because of a data race
@@ -390,6 +391,10 @@ func New(options *Options) *API {
390
391
)
391
392
}
392
393
394
+ if options .NotificationsEnqueuer == nil {
395
+ options .NotificationsEnqueuer = notifications .NewNoopEnqueuer ()
396
+ }
397
+
393
398
ctx , cancel := context .WithCancel (context .Background ())
394
399
r := chi .NewRouter ()
395
400
You can’t perform that action at this time.
0 commit comments