Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
gerson24 committed Oct 21, 2016
1 parent 64907e4 commit bbb8b64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit bbb8b64

Please sign in to comment.