summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/react/react.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/go/react/react.go b/go/react/react.go
index ebe8e61..5771b41 100644
--- a/go/react/react.go
+++ b/go/react/react.go
@@ -55,7 +55,7 @@ func (r *react) CreateCompute1(c Cell, f func(int) int) ComputeCell {
<-ch.ok
}
for _, cb := range cc.cb {
- log.Println("cb #1", cb)
+ log.Println("run cb #1")
cb(cc.value)
}
}
@@ -84,7 +84,7 @@ func (r *react) CreateCompute2(c1, c2 Cell, f func(int, int) int) ComputeCell {
<-ch.ok
}
for _, cb := range cc.cb {
- log.Println("cb #2", cb, cc.value)
+ log.Println("run cb #2")
cb(cc.value)
}
}
@@ -122,9 +122,8 @@ func (c *inputCell) SetValue(i int) {
}
func (c *cell) Value() int {
- v := c.value
- log.Println("report", v)
- return v
+ log.Println("report", c.value)
+ return c.value
}
func Register(c Cell, ch com) {