Skip to content

Commit

Permalink
Add ingestor forum prefix for max post length
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Jul 2, 2024
1 parent 2a51dd6 commit fc331c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/ingestor/src/main/scala/app.config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit fc331c5

Please sign in to comment.