Script should rely on the ledger to manager max message size (#19402)

This commit is contained in:
Carl Pulley 2024-06-18 16:51:14 +01:00 committed by GitHub
parent 87bd194d3b
commit dcb8588a65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -38,8 +38,8 @@ private final case class ScenarioServiceConfig(
@SuppressWarnings(Array("org.wartremover.warts.NonUnitStatements")) @SuppressWarnings(Array("org.wartremover.warts.NonUnitStatements"))
private object ScenarioServiceConfig { private object ScenarioServiceConfig {
// default to 128MB // We default to MAXINT as we rely on the ledger to manage the message size
val DefaultMaxInboundMessageSize: Int = 128 * 1024 * 1024 val DefaultMaxInboundMessageSize: Int = Int.MaxValue
val parser = new scopt.OptionParser[ScenarioServiceConfig]("scenario-service") { val parser = new scopt.OptionParser[ScenarioServiceConfig]("scenario-service") {
head("scenario-service") head("scenario-service")

View File

@ -28,7 +28,8 @@ case class RunnerMainConfig(
object RunnerMainConfig { object RunnerMainConfig {
val DefaultTimeMode: ScriptTimeMode = ScriptTimeMode.WallClock val DefaultTimeMode: ScriptTimeMode = ScriptTimeMode.WallClock
val DefaultMaxInboundMessageSize: Int = 4194304 // We default to MAXINT as we rely on the ledger to manage the message size
val DefaultMaxInboundMessageSize: Int = Int.MaxValue
sealed trait RunMode sealed trait RunMode
object RunMode { object RunMode {