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
|
import java.io.File
|
||||||
|
|
||||||
object CommonConfig {
|
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
|
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 {}
|
private val logger = KotlinLogging.logger {}
|
||||||
@Service
|
@Service
|
||||||
class FileWatcher: FileWatcherEvents {
|
class FileWatcher: FileWatcherEvents {
|
||||||
val messageProducer = DefaultProducer(CommonConfig.kafkaConsumerId)
|
val messageProducer = DefaultProducer(CommonConfig.kafkaTopic)
|
||||||
|
|
||||||
val queue = FileWatcherQueue()
|
val queue = FileWatcherQueue()
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
cinemagoer>=2023.5.1
|
cinemagoer>=2023.5.1
|
||||||
AnilistPython>=0.1.3
|
AnilistPython>=0.1.3
|
||||||
kafka-python>=2.0.2
|
kafka-python>=2.0.2
|
||||||
fuzzywuzzy>=0.18.0
|
fuzzywuzzy>=0.18.0
|
||||||
|
requests>=2.31.0
|
||||||
Loading…
Reference in New Issue
Block a user