refactor: improve code formatting and readability
Build & Test (NowChessSystems) TeamCity build finished
Build & Test (NowChessSystems) TeamCity build finished
This commit is contained in:
+6
-3
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user