mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-19 00:37:23 +03:00
Script should rely on the ledger to manager max message size (#19402)
This commit is contained in:
parent
87bd194d3b
commit
dcb8588a65
@ -38,8 +38,8 @@ private final case class ScenarioServiceConfig(
|
||||
|
||||
@SuppressWarnings(Array("org.wartremover.warts.NonUnitStatements"))
|
||||
private object ScenarioServiceConfig {
|
||||
// default to 128MB
|
||||
val DefaultMaxInboundMessageSize: Int = 128 * 1024 * 1024
|
||||
// We default to MAXINT as we rely on the ledger to manage the message size
|
||||
val DefaultMaxInboundMessageSize: Int = Int.MaxValue
|
||||
|
||||
val parser = new scopt.OptionParser[ScenarioServiceConfig]("scenario-service") {
|
||||
head("scenario-service")
|
||||
|
@ -28,7 +28,8 @@ case class RunnerMainConfig(
|
||||
|
||||
object RunnerMainConfig {
|
||||
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
|
||||
object RunMode {
|
||||
|
Loading…
Reference in New Issue
Block a user