战斗记录逻辑优化,但是未启用(可能会增加io和内存)

back_recharge
duhui 2023-02-02 15:30:34 +08:00
parent a32bec7c08
commit e7e0ce8eb8
1 changed files with 6 additions and 7 deletions

View File

@ -1,6 +1,5 @@
package com.ljsd.jieling.logic.fight;
import com.googlecode.protobuf.format.JsonFormat;
import com.ljsd.jieling.logic.dao.root.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -51,12 +50,12 @@ public class FightRecordLogic {
*
*/
public void addRecordMap(User user, CommonProto.FightData fightData){
try {
String str = JsonFormat.printToString(fightData);
queue.offer(str);
}catch (Exception e){
e.printStackTrace();
}
// try {
// String str = JsonFormat.printToString(fightData);
// queue.offer(str);
// }catch (Exception e){
// e.printStackTrace();
// }
}
}