From ecb893bccd5cb2407f106f4e1b080a70a34a2b7c Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 24 Mar 2019 16:54:03 +0100 Subject: [PATCH] Initialize hubbackend inside memoryBackend --- cmd/eksterd/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/eksterd/main.go b/cmd/eksterd/main.go index 1056b1a..2916f68 100644 --- a/cmd/eksterd/main.go +++ b/cmd/eksterd/main.go @@ -119,9 +119,10 @@ func NewApp(options AppOptions) (*App, error) { app.backend = loadMemoryBackend(options.pool) app.backend.AuthEnabled = options.AuthEnabled app.backend.baseURL = options.BaseURL - app.backend.pool = options.pool + app.backend.hubIncomingBackend.pool = options.pool + app.backend.hubIncomingBackend.baseURL = options.BaseURL - app.hubBackend = &hubIncomingBackend{app.backend, options.BaseURL, options.pool} + app.hubBackend = &hubIncomingBackend{backend: app.backend, baseURL: options.BaseURL, pool: options.pool} http.Handle("/micropub", µpubHandler{ Backend: app.backend,