Skip to content

Commit 1766857

Browse files
committed
Cleanup- remove references to store and transient lanes
1 parent e6880ae commit 1766857

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

server/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'idea'
1717
idea.module.outputDir file("out/production/classes")
1818

1919
group = 'ai.swim'
20-
description = 'tutorial Web Agents'
20+
description = 'Tutorial- Web Agents'
2121
ext.moduleName = 'swim.tutorial'
2222
sourceCompatibility = 1.9
2323
version = project.property('application.version')
@@ -76,7 +76,7 @@ afterEvaluate {
7676
dependsOn jar
7777
doFirst {
7878
jvmArgs += [
79-
'--module-path', files(configurations.runtimeClasspath, jar.archivePath).asPath,
79+
'--module-path', files(configurations.runtimeClasspath, jar.archiveFile).asPath,
8080
'--module', "${moduleName}/${mainClassName}"
8181
]
8282
classpath = files()

server/src/main/java/swim/tutorial/UnitAgent.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class UnitAgent extends AbstractAgent {
1515

1616
@SwimLane("histogram")
1717
protected final MapLane<Long, Value> histogram = this.<Long, Value>mapLane()
18-
.isTransient(true)
1918
.didUpdate((k,n,o) -> {
2019
logMessage("histogram: replaced " + k + "'s value to " + Recon.toString(n) + " from " + Recon.toString(o));
2120
dropOldData();
@@ -40,7 +39,6 @@ private void dropOldData() {
4039

4140
@SwimLane("history")
4241
protected final ListLane<Value> history = this.<Value>listLane()
43-
.isTransient(true)
4442
.didUpdate((idx, newValue, oldValue) -> {
4543
logMessage("history: appended {" + idx + ", " + Recon.toString(newValue) + "}");
4644
final long bucket = newValue.getItem(0).longValue() / 5000 * 5000;
@@ -52,7 +50,6 @@ private void dropOldData() {
5250

5351
@SwimLane("latest")
5452
protected final ValueLane<Value> latest = this.<Value>valueLane()
55-
.isTransient(true)
5653
.didSet((newValue, oldValue) -> {
5754
logMessage("latest: set to " + Recon.toString(newValue) + " from " + Recon.toString(oldValue));
5855
this.history.add(

server/src/main/resources/server.recon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
@plane("tutorial") {
33
class: "swim.tutorial.TutorialPlane"
44
}
5-
@store {
6-
path: "/tmp/swim-tutorial"
7-
}
85
@http(port: 9001) {
96
plane: "tutorial"
107
#documentRoot: "./ui/"

0 commit comments

Comments
 (0)