客户端设置license逻辑优化.
This commit is contained in:
+2
-2
@@ -56,7 +56,7 @@ public class LicenseObtainService implements ApplicationRunner {
|
||||
private static final ScheduledExecutorService scheduledExecutor = Executors.newSingleThreadScheduledExecutor(new CustomThreadFactory("LicenseObtain"));
|
||||
|
||||
@Autowired
|
||||
private ProxyClientRunner proxyClientRunner;
|
||||
private ProxyClientService proxyClientService;
|
||||
private ReentrantLock runLock = new ReentrantLock();
|
||||
private Scanner scanner = new Scanner(System.in);
|
||||
private volatile boolean isFirst;
|
||||
@@ -89,7 +89,7 @@ public class LicenseObtainService implements ApplicationRunner {
|
||||
SystemUtil.trySleep(2000);
|
||||
}
|
||||
String licenseKey = getLicenseKey(args);
|
||||
proxyClientRunner.start(licenseKey);
|
||||
proxyClientService.start(licenseKey);
|
||||
}
|
||||
|
||||
private String getLicenseKey(String[] args) {
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ import java.util.Scanner;
|
||||
@Slf4j
|
||||
@NonIntercept
|
||||
@Component
|
||||
public class ProxyClientRunner {
|
||||
public class ProxyClientService {
|
||||
@Autowired
|
||||
private ProxyConfig proxyConfig;
|
||||
@Autowired("bootstrap")
|
||||
Reference in New Issue
Block a user