Updated requirments
This commit is contained in:
parent
2b590a0f3a
commit
6359d39a72
@ -3,7 +3,7 @@ package no.iktdev.streamit.content.common
|
||||
import java.io.File
|
||||
|
||||
object CommonConfig {
|
||||
var kafkaConsumerId: String = System.getenv("KAFKA_TOPIC") ?: "contentEvents"
|
||||
var kafkaTopic: String = System.getenv("KAFKA_TOPIC") ?: "contentEvents"
|
||||
var incomingContent: File? = if (!System.getenv("DIRECTORY_CONTENT_INCOMING").isNullOrEmpty()) File(System.getenv("DIRECTORY_CONTENT_INCOMING")) else null
|
||||
|
||||
}
|
||||
@ -20,7 +20,7 @@ import org.springframework.stereotype.Service
|
||||
private val logger = KotlinLogging.logger {}
|
||||
@Service
|
||||
class FileWatcher: FileWatcherEvents {
|
||||
val messageProducer = DefaultProducer(CommonConfig.kafkaConsumerId)
|
||||
val messageProducer = DefaultProducer(CommonConfig.kafkaTopic)
|
||||
|
||||
val queue = FileWatcherQueue()
|
||||
|
||||
|
||||
@ -2,3 +2,4 @@ cinemagoer>=2023.5.1
|
||||
AnilistPython>=0.1.3
|
||||
kafka-python>=2.0.2
|
||||
fuzzywuzzy>=0.18.0
|
||||
requests>=2.31.0
|
||||
Loading…
Reference in New Issue
Block a user