refactor: improve code formatting and readability

This commit is contained in:
Janis Eccarius
2026-05-31 17:03:21 +02:00
committed by Lala, Shahd
parent 4b2f3a256e
commit ad2cb7431c
@@ -40,8 +40,9 @@ class GameWritebackStreamListener:
@PostConstruct @PostConstruct
def startListening(): Unit = def startListening(): Unit =
createGroupIfAbsent() createGroupIfAbsent()
executor.submit(new Runnable: executor.submit(
def run(): Unit = pollLoop() new Runnable:
def run(): Unit = pollLoop(),
) )
log.infof("Started listening to game-writeback stream (consumer=%s)", consumerId) log.infof("Started listening to game-writeback stream (consumer=%s)", consumerId)
@@ -54,7 +55,9 @@ class GameWritebackStreamListener:
private def pollLoop(): Unit = private def pollLoop(): Unit =
while true do while true do
Try { Try {
val messages = redis.stream(classOf[String]).xreadgroup( val messages = redis
.stream(classOf[String])
.xreadgroup(
groupName, groupName,
consumerId, consumerId,
streamKey, streamKey,