Skip to content

Commit

Permalink
fix adservice-v2 start fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Frapschen committed Apr 12, 2023
1 parent 73da808 commit 8c09fe5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ public static void main(String[] args) {

@PostConstruct
public void initSentinelClusterFlow() throws Exception{
new SentinelClusterClientInitFunc().init();
String sentinel = System.getProperty("spring.cloud.sentinel.enabled");
if("true".equals(sentinel)){
new SentinelClusterClientInitFunc().init();
}
}
}

0 comments on commit 8c09fe5

Please sign in to comment.