From 87c4efe93e6fe31a9c989b4aa5cc0c8f559b845d Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 31 三月 2023 16:50:47 +0800
Subject: [PATCH] 提升机代码,四向穿梭车线程优化

---
 src/main/java/com/zy/core/cache/SlaveConnection.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/core/cache/SlaveConnection.java b/src/main/java/com/zy/core/cache/SlaveConnection.java
index 666d86a..0b57169 100644
--- a/src/main/java/com/zy/core/cache/SlaveConnection.java
+++ b/src/main/java/com/zy/core/cache/SlaveConnection.java
@@ -2,19 +2,19 @@
 
 import com.zy.core.ThreadHandler;
 import com.zy.core.enums.SlaveType;
-import io.swagger.models.auth.In;
 
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
 /**
+ * 绾跨▼缂撳瓨瀹瑰櫒
  * Created by vincent on 2020/8/4
  */
 public class SlaveConnection {
 
     private static final String _LINK = "_";
 
-    private static Map<String, ThreadHandler> conContain = new ConcurrentHashMap<>();
+    private static final Map<String, ThreadHandler> conContain = new ConcurrentHashMap<>();
 
     public static void put(SlaveType type, Integer id, ThreadHandler threadHandler) {
         String key = toKey(type, id);
@@ -22,8 +22,8 @@
         conContain.put(key, threadHandler);
     }
 
-    public static ThreadHandler get(SlaveType type, Integer key) {
-        return conContain.get(toKey(type, key));
+    public static ThreadHandler get(SlaveType type, Integer id) {
+        return conContain.get(toKey(type, id));
     }
 
     public static void remove(SlaveType type, Integer id) {

--
Gitblit v1.9.1