Skip to content

Commit ee79ea9

Browse files
committed
- PS
1 parent 47b2a19 commit ee79ea9

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

service/history/chasm_engine.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,6 @@ func (e *ChasmEngine) predicateSatisfied(
367367
executionLease api.WorkflowLease,
368368
predicateFn func(chasm.Context, chasm.Component) (bool, error),
369369
) ([]byte, error) {
370-
fmt.Println("🔎 checkPredicate")
371-
372370
chasmTree, ok := executionLease.GetMutableState().ChasmTree().(*chasm.Node)
373371
if !ok {
374372
return nil, serviceerror.NewInternalf(
@@ -401,15 +399,13 @@ func (e *ChasmEngine) predicateSatisfied(
401399
return nil, err
402400
}
403401
if !satisfied {
404-
fmt.Println(" 🟠 checkPredicate: predicate not satisfied")
405402
return nil, nil
406403
}
407404

408405
newRef, err := chasmContext.Ref(component)
409406
if err != nil {
410407
return nil, err
411408
}
412-
fmt.Println(" 🟢 checkPredicate: predicate satisfied")
413409
return newRef, nil
414410
}
415411

service/history/chasm_notifier.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package history
55

66
import (
7-
"fmt"
87
"sync"
98

109
"go.temporal.io/server/chasm"
@@ -43,14 +42,12 @@ func (n *ChasmNotifier) Notify(key chasm.EntityKey) {
4342

4443
// Subscribe returns a channel that will be closed to indicate that there is a notification relating to the execution.
4544
func (n *ChasmNotifier) Subscribe(key chasm.EntityKey) (<-chan struct{}, error) {
46-
fmt.Println("🟠 Subscribe")
4745
var ch chan struct{}
4846
var ok bool
4947

5048
n.lock.Lock()
5149
defer n.lock.Unlock()
5250
if ch, ok = n.executions[key]; !ok {
53-
fmt.Println(" ↳ Making new channel")
5451
ch = make(chan struct{})
5552
n.executions[key] = ch
5653
}

0 commit comments

Comments
 (0)