Skip to content

Commit

Permalink
#1490 Limit flow size
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 13, 2020
1 parent 128771f commit 0539f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/services/FlowActor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class FlowActor extends Actor {
organisations.foreach { organisation =>
val cacheKey = FlowId(organisation, None).toString
val ids = cache.get[List[String]](cacheKey).getOrElse(Nil)
cache.set(cacheKey, id :: ids)
cache.set(cacheKey, (id :: ids).take(10))
cases.foreach { caseId =>
val cacheKey: String = FlowId(organisation, Some(caseId)).toString
val ids = cache.get[List[String]](cacheKey).getOrElse(Nil)
Expand Down

0 comments on commit 0539f12

Please sign in to comment.