From fc331c5e96f0c9043b06c79b2448a9b29ee2cf11 Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Tue, 2 Jul 2024 11:58:37 +0700 Subject: [PATCH] Add ingestor forum prefix for max post length --- modules/ingestor/src/main/scala/app.config.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ingestor/src/main/scala/app.config.scala b/modules/ingestor/src/main/scala/app.config.scala index 5e34c5b..03652ea 100644 --- a/modules/ingestor/src/main/scala/app.config.scala +++ b/modules/ingestor/src/main/scala/app.config.scala @@ -51,8 +51,9 @@ object IngestorConfig: .or(prop("ingestor.forum.start.at")) .as[Long] .option - private def maxPostLength = env("MAX_POST_LENGTH").or(prop("max.post.length")).as[Int].default(5_000) - def config = (batchSize, timeWindows, startAt, maxPostLength).parMapN(Forum.apply) + private def maxPostLength = + env("INGESTOR_FORUM_MAX_POST_LENGTH").or(prop("ingestor.forum.max.post.length")).as[Int].default(5_000) + def config = (batchSize, timeWindows, startAt, maxPostLength).parMapN(Forum.apply) private object Team: private def batchSize =