From c166a8b39275aefb21ee63050a5f4fe6de986b7f Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sat, 3 Jan 2015 09:19:51 +0000 Subject: [PATCH] actually start the loadbalancer updater goroutine --- fe/http.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fe/http.go b/fe/http.go index f7334485..3383ec69 100644 --- a/fe/http.go +++ b/fe/http.go @@ -259,6 +259,10 @@ func (h *HttpRedirector) serveStatusPage(w http.ResponseWriter, r *http.Request) // Run starts the HTTP server on the given addr. Does not return. func (h *HttpRedirector) Run(addr, staticDir, templateDir string) { + // Start the background goroutine that updates the + // LoadBalancer asynchronously. + go h.lbUpdater() + h.template = template.Must( template.ParseGlob( filepath.Join(templateDir, "*.html"))) -- GitLab