Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b94ab79

Browse files
committed
rename some periodic tasks
1 parent 0e03a20 commit b94ab79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

β€Žtelegram-bot/src/main/kotlin/by/jprof/coding/problems/bot/task/DailyTaskPoster.kt renamed to β€Žtelegram-bot/src/main/kotlin/by/jprof/coding/problems/bot/task/DailyProblemPostingTask.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import org.springframework.transaction.reactive.TransactionalOperator
1616
import org.springframework.transaction.reactive.executeAndAwait
1717

1818
@Component
19-
class DailyTaskPoster(
19+
class DailyProblemPostingTask(
2020
private val problemProblemRepository: ProblemRepository,
2121
private val chatRepository: ChatRepository,
2222
private val txOperator : TransactionalOperator,
2323
private val tgBot : TelegramBot
2424
) {
2525
@Scheduled(cron = "0 0 12 * * *")
26-
fun postDailyTask() = runBlocking {
26+
fun postDailyProblem() = runBlocking {
2727
txOperator.executeAndAwait {
2828
val problems = problemProblemRepository.findAll().toList()
2929
val randomProblem = problems.random()

β€Žtelegram-bot/src/main/kotlin/by/jprof/coding/problems/bot/task/PoolLeetcodeProblem.kt renamed to β€Žtelegram-bot/src/main/kotlin/by/jprof/coding/problems/bot/task/LeetCodeProblemsPoolingTask.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import org.springframework.transaction.reactive.TransactionalOperator
1313
import org.springframework.transaction.reactive.executeAndAwait
1414

1515
@Component
16-
class PoolLeetcodeProblem(
16+
class LeetCodeProblemsPoolingTask(
1717
private val leetCodeProblemsScraper: LeetCodeProblemsScraper,
1818
private val problemProblemRepository: ProblemRepository,
1919
private val txOperator : TransactionalOperator,
2020
) {
2121

2222
companion object {
23-
private val log = LoggerFactory.getLogger(PoolLeetcodeProblem::class.java)!!
23+
private val log = LoggerFactory.getLogger(LeetCodeProblemsPoolingTask::class.java)!!
2424
}
2525

2626
@Scheduled(cron = "0 0 0 * * 7")

0 commit comments

Comments
Β (0)