Skip to content

Commit

Permalink
refactor: @AsyncExecutor 명시
Browse files Browse the repository at this point in the history
  • Loading branch information
kor-Chipmunk committed Mar 13, 2024
1 parent e899c18 commit 30363aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.springframework.stereotype.Component
class KafkaProducer(
private val template: KafkaTemplate<String, LalalaEvent>
) {
@Async
@Async("asyncProducerExecutor")
fun execute(event: LalalaEvent) {
template.send(event.topic, event)
}
Expand Down

0 comments on commit 30363aa

Please sign in to comment.