mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-19 16:57:40 +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"))
|
@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")
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user