Skip to content

Commit

Permalink
fix status
Browse files Browse the repository at this point in the history
  • Loading branch information
ssedoudbgouv committed Jul 15, 2024
1 parent 3a025a7 commit e2da41a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/service/AntivirusService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ class AntivirusService(
for {
fileDataOpt <- fileDataRepository.getByExternalId(List(externalFileId)).map(_.headOption)
fileData <- fileDataOpt.liftTo[Future](UnknownExternalId(externalFileId))
} yield fileData
status = fileData.scanResult.filter(i =>
i == AntivirusScanExitCode.VirusFound.value || i == AntivirusScanExitCode.NoVirusFound.value
)
} yield fileData.copy(scanResult = status)

}
2 changes: 1 addition & 1 deletion conf/common/thread-pool.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ my-blocking-dispatcher {
type = Dispatcher
executor = "thread-pool-executor"
thread-pool-executor {
fixed-pool-size = 8
fixed-pool-size = 4
}
throughput = 1
}
Expand Down

0 comments on commit e2da41a

Please sign in to comment.