Skip to content

Commit

Permalink
Add Missing @configuration Annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Mar 25, 2024
1 parent 7143993 commit f4d0984
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mashup.shorts.config

import org.springframework.context.annotation.Configuration
import org.springframework.retry.annotation.EnableRetry

@Configuration
@EnableRetry
class RetryConfig {
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mashup.shorts.config

import org.springframework.context.annotation.Configuration
import org.springframework.scheduling.annotation.EnableScheduling

@Configuration
@EnableScheduling
class SchedulingConfig {
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import java.time.LocalDateTime
import java.time.format.DateTimeFormatter.ofPattern
import org.jsoup.select.Elements
import org.springframework.context.annotation.Primary
import org.springframework.retry.annotation.Retryable
import org.springframework.stereotype.Component
import com.mashup.shorts.KeywordExtractor
import com.mashup.shorts.RankingGenerator
Expand Down Expand Up @@ -42,7 +41,6 @@ class CrawlerCore(
private val rankingGenerator: RankingGenerator,
) {

@Retryable(value = [Exception::class], maxAttempts = 3)
internal fun execute(): LocalDateTime {
val crawledDateTime = LocalDateTime.now()
val keywordsCountingPair = mutableMapOf<String, Double>()
Expand Down

0 comments on commit f4d0984

Please sign in to comment.