From bbb8b64b8000546ae2f1b3b5d1710c0004627ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerson=20Pozo=20Gonz=C3=A1lez?= Date: Fri, 21 Oct 2016 13:12:46 +0200 Subject: [PATCH] minor change --- http/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http/server.go b/http/server.go index beed88c..dae13f9 100644 --- a/http/server.go +++ b/http/server.go @@ -159,8 +159,6 @@ func NewWorker(worker *foulkon.Worker, h http.Handler) Server { // RefreshResources implements reloadFunc func (ps *ProxyServer) RefreshResources(proxy *foulkon.Proxy) func(s *ProxyServer) bool { return func(srv *ProxyServer) bool { - router := httprouter.New() - proxyHandler := ProxyHandler{proxy: proxy, client: http.DefaultClient} // Get proxy resources @@ -171,6 +169,7 @@ func (ps *ProxyServer) RefreshResources(proxy *foulkon.Proxy) func(s *ProxyServe } if diff := pretty.Compare(srv.currentResources, newProxyResources); diff != "" { + router := httprouter.New() defer srv.resourceLock.Unlock() srv.resourceLock.Lock()