Comment out debug printing

This commit is contained in:
Tony Garnock-Jones 2021-01-12 14:34:45 +01:00
parent 5a412a5d9b
commit bed03edcd3
1 changed files with 4 additions and 3 deletions

View File

@ -32,10 +32,11 @@ new Ground(() => {
Dataspace.spawn('box', function () { Dataspace.spawn('box', function () {
Dataspace.declareField(this, 'value', 0); Dataspace.declareField(this, 'value', 0);
Dataspace.currentFacet.addEndpoint(() => { Dataspace.currentFacet.addEndpoint(() => {
// console.log('recomputing published BoxState', this.value);
return { assertion: BoxState(this.value), analysis: null }; return { assertion: BoxState(this.value), analysis: null };
}); });
Dataspace.currentFacet.addDataflow(() => { Dataspace.currentFacet.addDataflow(() => {
console.log('dataflow saw new value', this.value); // console.log('dataflow saw new value', this.value);
if (this.value === N) { if (this.value === N) {
Dataspace.currentFacet.stop(() => { Dataspace.currentFacet.stop(() => {
console.log('terminated box root facet'); console.log('terminated box root facet');
@ -48,7 +49,7 @@ new Ground(() => {
if (evt === Skeleton.EventType.MESSAGE) { if (evt === Skeleton.EventType.MESSAGE) {
Dataspace.currentFacet.actor.scheduleScript(() => { Dataspace.currentFacet.actor.scheduleScript(() => {
this.value = vs[0]; this.value = vs[0];
console.log('box updated value', vs[0]); // console.log('box updated value', vs[0]);
}); });
} }
}); });
@ -62,7 +63,7 @@ new Ground(() => {
analysis.callback = Dataspace.wrap((evt, vs) => { analysis.callback = Dataspace.wrap((evt, vs) => {
if (evt === Skeleton.EventType.ADDED) { if (evt === Skeleton.EventType.ADDED) {
Dataspace.currentFacet.actor.scheduleScript(() => { Dataspace.currentFacet.actor.scheduleScript(() => {
console.log('client sending SetBox', vs[0] + 1); // console.log('client sending SetBox', vs[0] + 1);
Dataspace.send(SetBox(vs[0] + 1)); Dataspace.send(SetBox(vs[0] + 1));
}); });
} }