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.declareField(this, 'value', 0);
Dataspace.currentFacet.addEndpoint(() => {
// console.log('recomputing published BoxState', this.value);
return { assertion: BoxState(this.value), analysis: null };
});
Dataspace.currentFacet.addDataflow(() => {
console.log('dataflow saw new value', this.value);
// console.log('dataflow saw new value', this.value);
if (this.value === N) {
Dataspace.currentFacet.stop(() => {
console.log('terminated box root facet');
@ -48,7 +49,7 @@ new Ground(() => {
if (evt === Skeleton.EventType.MESSAGE) {
Dataspace.currentFacet.actor.scheduleScript(() => {
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) => {
if (evt === Skeleton.EventType.ADDED) {
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));
});
}