Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : UserFileUtil생성자에서 load제거 #2

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/main/java/server/util/UserFileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
public class UserFileUtil {

private static final String USER_FILE = "/home/ubuntu/BackEnd/user.txt"; // 절대 경로로 변경

private int nextUserId = 1; // 새로운 유저 ID를 생성할 때 사용
private final Map<Integer, User> users = new ConcurrentHashMap<>();

public UserFileUtil() {
load(); // 파일에서 유저 데이터를 로드
}


// 유저 데이터를 파일에서 로드
public void load() {
Expand Down