mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-04-24 22:42:13 +00:00
Particle ttl and timeout constants (#505)
This commit is contained in:
parent
2901622076
commit
3f17d40af1
@ -23,6 +23,8 @@ object ValueRaw {
|
||||
|
||||
// TODO: move to LiteralRaw
|
||||
val InitPeerId: LiteralRaw = LiteralRaw("%init_peer_id%", ScalarType.string)
|
||||
val ParticleTtl: LiteralRaw = LiteralRaw("%ttl%", ScalarType.u32)
|
||||
val ParticleTimeout: LiteralRaw = LiteralRaw("%timestamp%", ScalarType.u64)
|
||||
|
||||
val Nil: LiteralRaw = LiteralRaw("[]", StreamType(BottomType))
|
||||
|
||||
|
@ -42,6 +42,20 @@ case class TransformConfig(
|
||||
false
|
||||
)
|
||||
|
||||
val particleTtl: ConstantRaw =
|
||||
ConstantRaw(
|
||||
"PARTICLE_TTL",
|
||||
ValueRaw.ParticleTtl,
|
||||
false
|
||||
)
|
||||
|
||||
val particleTimeout: ConstantRaw =
|
||||
ConstantRaw(
|
||||
"PARTICLE_TIMEOUT",
|
||||
ValueRaw.ParticleTimeout,
|
||||
false
|
||||
)
|
||||
|
||||
val nil: ConstantRaw =
|
||||
ConstantRaw(
|
||||
"nil", // TODO: shouldn't it be NIL?
|
||||
@ -57,5 +71,5 @@ case class TransformConfig(
|
||||
)
|
||||
|
||||
val constantsList: List[ConstantRaw] =
|
||||
hostPeerId :: initPeerId :: nil :: lastError :: constants
|
||||
hostPeerId :: initPeerId :: particleTtl :: particleTimeout :: nil :: lastError :: constants
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user