Skip to content

Commit

Permalink
refactor: NEXON OPEN API 키 타입 변경으로 인한 sleep삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
yechan-kim committed Aug 27, 2024
1 parent ef5587a commit fbff951
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
import java.io.IOException;
import java.io.InputStream;

import static java.lang.Thread.sleep;

@Service
@RequiredArgsConstructor
public class UploadAndFetchInfo {
Expand All @@ -44,8 +42,6 @@ public String execute(String date, MultipartFile file) {
Workbook workbook = new XSSFWorkbook(inputStream);
Sheet sheet = workbook.getSheetAt(0); // 첫 번째 시트를 가져옵니다.

int cnt = 0;

// 엑셀 데이터 처리
for (Row row : sheet) {
for (Cell cell : row) {
Expand Down Expand Up @@ -75,13 +71,11 @@ public String execute(String date, MultipartFile file) {
character.updateMuLungInfo(characterMuLungInfoResponse);

characterRepository.save(character);

sleep(1000);
}
}

workbook.close();
} catch (IOException | InterruptedException e) {
} catch (IOException e) {
throw new ServiceException(ErrorCode.INTERNAL_SERVER_ERROR);
}

Expand Down

0 comments on commit fbff951

Please sign in to comment.