Skip to content

Commit

Permalink
Docs: 메서드명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonseon12 committed Jan 29, 2024
1 parent 9a7d2a5 commit 69060c7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void fetchJd() throws InterruptedException {

JobCategory findJobCategory = findByJobPosition(jobPosition);

createJobDetail(jobPosition, findJobCategory, fetchJobIds);
processJobDetails(jobPosition, findJobCategory, fetchJobIds);
}
}

Expand All @@ -64,7 +64,7 @@ private JobCategory findByJobPosition(final JobSearchJobPosition jobPosition) {
.orElseThrow(() -> new CrawlerException(WantedErrorCode.NOT_FOUND_JOB_CATEGORY));
}

private void createJobDetail(final JobSearchJobPosition jobPosition, final JobCategory jobCategory,
private void processJobDetails(final JobSearchJobPosition jobPosition, final JobCategory jobCategory,
final Set<Long> fetchJobIds) throws InterruptedException {
final int thresholdCount = scrapingWantedConfig.getSleep().getThresholdCount();
final int sleepTimeMillis = scrapingWantedConfig.getSleep().getTimeMillis();
Expand All @@ -87,13 +87,13 @@ private void createJobDetail(final JobSearchJobPosition jobPosition, final JobCa

consecutiveFailCount = 0; // 연속으로 JD가 추출되지 않았다면 변수 초기화

processJobDetail(jobPosition, jobCategory, detailId);
createJobDetail(jobPosition, jobCategory, detailId);

sleepCounter++;
}
}

private void processJobDetail(final JobSearchJobPosition jobPosition, final JobCategory jobCategory, final Long detailId) {
private void createJobDetail(final JobSearchJobPosition jobPosition, final JobCategory jobCategory, final Long detailId) {
WantedJobDetailResponse jobDetailResponse = getJobDetail(jobCategory, detailId);
WantedJd savedWantedJd = createWantedJd(jobDetailResponse);

Expand Down

0 comments on commit 69060c7

Please sign in to comment.