1.消息推送去掉锁

This commit is contained in:
邱贞招 2024-09-16 16:17:23 +08:00
parent f3567b07aa
commit f1de90a6b4

View File

@ -127,12 +127,10 @@ public class ReceiveController {
log.info("接收到receive方法时间: " + System.currentTimeMillis());
// 使用线程池提交任务
scheduledExecutorService.submit(() -> {
synchronized (lock) {
try {
handleBody(obj);
} catch (UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException e) {
e.printStackTrace();
}
try {
handleBody(obj);
} catch (UnsupportedEncodingException | NoSuchAlgorithmException | InvalidKeyException e) {
e.printStackTrace();
}
});
/*************明文模式 end****************/