refactor: improve code formatting and readability
Build & Test (NowChessSystems) TeamCity build finished

This commit is contained in:
Janis Eccarius
2026-05-31 17:03:21 +02:00
parent 252851de1c
commit 2dbb1d0b67
@@ -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,