From 0bf40bb19f23a9ee57bab202655fde3172e56a40 Mon Sep 17 00:00:00 2001 From: Lakin Wecker Date: Tue, 19 May 2020 08:07:13 -0600 Subject: [PATCH] Switch to keepAlive. Much better. --- modules/api/src/main/GameApiV2.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api/src/main/GameApiV2.scala b/modules/api/src/main/GameApiV2.scala index a09ddac674..82e215f354 100644 --- a/modules/api/src/main/GameApiV2.scala +++ b/modules/api/src/main/GameApiV2.scala @@ -102,7 +102,7 @@ final class GameApiV2( .mapConcat(_ filter config.postFilter) .take(config.max | Int.MaxValue) .via(preparationFlow(config)) - .merge(Source.tick(keepAliveInterval, keepAliveInterval, emptyMsgFor(config))) + .keepAlive(keepAliveInterval, () => emptyMsgFor(config)) def exportByIds(config: ByIdsConfig): Source[String, _] = gameRepo