记得上下班打卡 | git大法好,push需谨慎

Commit 35ba42db authored by 张国柄's avatar 张国柄

Adam压测:暂时取消sendMqByRedis;

parent ea50daca
...@@ -34,8 +34,8 @@ public class QueueUtils { ...@@ -34,8 +34,8 @@ public class QueueUtils {
* @param jsonMsg Json字符串 * @param jsonMsg Json字符串
*/ */
public void sendMsgByRedis(String streamKey, String jsonMsg) { public void sendMsgByRedis(String streamKey, String jsonMsg) {
HashMap<String, String> map = CollectionUtil.mapStringString(); // HashMap<String, String> map = CollectionUtil.mapStringString();
map.put("message", jsonMsg); // map.put("message", jsonMsg);
stringRedisTemplate.opsForStream().add(StreamRecords.mapBacked(map).withStreamKey(streamKey)); // stringRedisTemplate.opsForStream().add(StreamRecords.mapBacked(map).withStreamKey(streamKey));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment