Skip to content

Commit 5742879

Browse files
style: adjust kafka publisher style
1 parent bd16b78 commit 5742879

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/main/kotlin/infrastructure/kafka/KafkaPublisher.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ class KafkaPublisher : EventPublisher<Event<Any>> {
2222
init {
2323
listOf(System.getenv("BOOTSTRAP_SERVER_URL"), System.getenv("SCHEMA_REGISTRY_URL")).forEach {
2424
requireNotNull(it) {
25-
println("""
26-
Invalid environment variable!
27-
Check the documentation here: https://github.com/SmartOperatingBlock/bootstrap")
28-
""".trimIndent())
25+
println(
26+
"""
27+
Invalid environment variable!
28+
Check the documentation here:
29+
https://github.com/SmartOperatingBlock/bootstrap")"""
30+
.trimIndent()
31+
)
2932
}
3033
}
3134
}
@@ -35,7 +38,7 @@ class KafkaPublisher : EventPublisher<Event<Any>> {
3538
"schema.registry.url" to System.getenv("SCHEMA_REGISTRY_URL"),
3639
"key.serializer" to "org.apache.kafka.common.serialization.StringSerializer",
3740
"value.serializer" to KafkaJsonSerializer::class.java
38-
)
41+
)
3942

4043
private val eventToTopic: Map<String, String> = mapOf(
4144
"ROOM_EVENT" to "room-events",

0 commit comments

Comments
 (0)