From 91573a133dad2c62463a941aafc671df17370047 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 03 七月 2025 15:35:56 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/ServerBootstrap.java |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/src/main/java/com/zy/core/ServerBootstrap.java b/src/main/java/com/zy/core/ServerBootstrap.java
index c5c91c0..bfaf4da 100644
--- a/src/main/java/com/zy/core/ServerBootstrap.java
+++ b/src/main/java/com/zy/core/ServerBootstrap.java
@@ -9,9 +9,7 @@
 import com.zy.core.properties.SlaveProperties;
 import com.zy.core.thread.*;
 import com.zy.core.thread.impl.LfdZyForkLiftMasterThread;
-import com.zy.core.thread.impl.LfdZyForkLiftSlaveThread;
 import com.zy.core.thread.impl.NyShuttleThread;
-import com.zy.core.thread.impl.ZyForkLiftThread;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.scheduling.annotation.Async;
@@ -30,8 +28,6 @@
     @Autowired
     private SlaveProperties slaveProperties;
     @Autowired
-    private MainProcess mainProcess;
-    @Autowired
     private RedisUtil redisUtil;
 
 
@@ -44,8 +40,6 @@
         initMq();
         // 鍒濆鍖栦笅浣嶆満绾跨▼
         initThread();
-        // 寮�濮嬩富娴佺▼杩涚▼
-        mainProcess.start();
         News.info("鏍稿績鎺у埗灞傚凡鍚姩...............................................");
     }
 
@@ -61,22 +55,6 @@
     }
 
     private void initThread(){
-        // 鍒濆鍖栬揣鍙夋彁鍗囨満
-        for (ForkLiftSlave forkLiftSlave : slaveProperties.getForkLift()) {
-            News.info("鍒濆鍖栬揣鍙夋彁鍗囨満........................................................");
-            ThreadHandler thread = null;
-            if (forkLiftSlave.getThreadImpl().equals("ZyForkLiftThread")) {
-                thread = new ZyForkLiftThread(forkLiftSlave, redisUtil);
-            } else if (forkLiftSlave.getThreadImpl().equals("LfdZyForkLiftSlaveThread")) {
-                thread = new LfdZyForkLiftSlaveThread(forkLiftSlave, redisUtil, forkLiftSlave.getMasterId());
-            } else {
-                throw new CoolException("鏈煡鐨勭嚎绋嬪疄鐜�");
-            }
-
-            new Thread(thread).start();
-            SlaveConnection.put(SlaveType.ForkLift, forkLiftSlave.getId(), thread);
-        }
-
         // 鍒濆鍖栬揣鍙夋彁鍗囨満
         for (ForkLiftSlave forkLiftSlave : slaveProperties.getForkLiftMaster()) {
             News.info("鍒濆鍖栬揣鍙夋彁鍗囨満Master........................................................");

--
Gitblit v1.9.1