wip: go embedded worker
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
@ -27,7 +27,6 @@ import (
|
||||
"goauthentik.io/internal/utils"
|
||||
"goauthentik.io/internal/utils/web"
|
||||
"goauthentik.io/internal/web/brand_tls"
|
||||
"goauthentik.io/internal/worker"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -47,7 +46,6 @@ type WebServer struct {
|
||||
|
||||
g *gounicorn.GoUnicorn
|
||||
gunicornReady bool
|
||||
worker *worker.Worker
|
||||
mainRouter *mux.Router
|
||||
loggingRouter *mux.Router
|
||||
log *log.Entry
|
||||
@ -172,7 +170,6 @@ func (ws *WebServer) Start() {
|
||||
|
||||
go ws.runMetricsServer()
|
||||
go ws.attemptStartBackend()
|
||||
go ws.attemptStartWorker()
|
||||
go ws.listenPlain()
|
||||
go ws.listenTLS()
|
||||
}
|
||||
@ -202,12 +199,6 @@ func (ws *WebServer) attemptStartBackend() {
|
||||
}
|
||||
}
|
||||
|
||||
func (ws *WebServer) attemptStartWorker() {
|
||||
if ws.worker == nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func (ws *WebServer) Core() *gounicorn.GoUnicorn {
|
||||
return ws.g
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user