Skip to content

Commit

Permalink
support interval reload
Browse files Browse the repository at this point in the history
  • Loading branch information
YeautyYE committed Oct 17, 2019
1 parent c37d594 commit 38aefb3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public void updateNginxFromNacos(File configFile) throws IOException, Interrupte
List<Instance> instances = namingService.getAllInstances(configBO.getServiceName());
//更新nginx中的proxy_pass
refreshProxyPass(instances, configBO.getProxyPass(), configBO.getConfigPath());
lastReloadTime.set(System.currentTimeMillis());
logger.info("proxy_pass:{} update success!", configBO.getServiceName());
} catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 38aefb3

Please sign in to comment.