Create circular references between backend and hubbackend
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
21c226ce56
commit
ae55224d11
|
@ -47,10 +47,14 @@ func NewApp(options AppOptions) (*App, error) {
|
|||
|
||||
app.backend.AuthEnabled = options.AuthEnabled
|
||||
app.backend.baseURL = options.BaseURL
|
||||
|
||||
// FIXME: circular
|
||||
app.backend.hubIncomingBackend.pool = options.pool
|
||||
app.backend.hubIncomingBackend.baseURL = options.BaseURL
|
||||
app.backend.hubIncomingBackend.backend = app.backend
|
||||
|
||||
app.hubBackend = &hubIncomingBackend{backend: app.backend, baseURL: options.BaseURL, pool: options.pool}
|
||||
app.backend.hubIncomingBackend = *app.hubBackend
|
||||
|
||||
http.Handle("/micropub", µpubHandler{
|
||||
Backend: app.backend,
|
||||
|
|
Loading…
Reference in New Issue
Block a user