Skip to content

Commit

Permalink
Merge pull request #1334 from lf-lang/ts-never-timevalue
Browse files Browse the repository at this point in the history
Quick fix to adjust upstreamFedDelays as never tag
  • Loading branch information
byeonggiljun authored Aug 24, 2022
2 parents 59663f5 + 3670a83 commit 3d91524
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class TSConstructorGenerator (
val federateConfigurations = LinkedList<String>()
if (reactor.isFederated) {
for ((key, _) in federate.dependsOn) {
// FIXME: Get delay properly considering the unit instead of hardcoded BigInt(0).
federateConfigurations.add("this.addUpstreamFederate(${key.id}, BigInt(0));")
// FIXME: Get delay properly considering the unit instead of hardcoded TimeValue.NEVER().
federateConfigurations.add("this.addUpstreamFederate(${key.id}, TimeValue.NEVER());")
}
for ((key, _) in federate.sendsTo) {
federateConfigurations.add("this.addDownstreamFederate(${key.id});")
Expand Down

0 comments on commit 3d91524

Please sign in to comment.