Skip to content
Snippets Groups Projects
Commit c166a8b3 authored by ale's avatar ale
Browse files

actually start the loadbalancer updater goroutine

parent 1e63bdb1
No related branches found
No related tags found
No related merge requests found
......@@ -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")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment