[*] 日常优化

This commit is contained in:
acgist
2023-10-26 07:28:59 +08:00
parent 7b7cb87f85
commit d2a2181a23
2 changed files with 6 additions and 5 deletions

View File

@@ -28,9 +28,9 @@ Android >= 9.0
### 硬盘分区
* / = 5G
* / = 8G
* swap = 2G
* /data = 15G
* /data = 16G
### 选择并安装软件很慢

View File

@@ -37,9 +37,10 @@ public class SessionManager {
* @return 会话
*/
public Session call(Client source, Client target) {
final Session session = new Session(this.idService.buildUuid(), source, target);
this.sessions.put(session.getId(), session);
log.info("创建会话:{} - {} - {}", session.getId(), session.getSourceClientId(), session.getTargetClientId());
final String sessionId = this.idService.buildUuid();
final Session session = new Session(sessionId, source, target);
this.sessions.put(sessionId, session);
log.info("创建会话:{} - {} - {}", sessionId, session.getSourceClientId(), session.getTargetClientId());
return session;
}