优化结点

This commit is contained in:
boyce
2025-10-14 15:38:08 +08:00
parent f22ee230e4
commit be91bcd4b5
4 changed files with 108 additions and 10 deletions

View File

@@ -649,8 +649,12 @@ func (em *CreateTimer) Exec() (int, error) {
if err != nil {
log.Warnf("CreateTimer SafeAfterFunc error timerId:%d err:%v", timerId, err)
}
em.gr.IBlueprintModule.CancelTimerId(graphID,&timerId)
})
em.gr.mapTimerID[timerId] = struct{}{}
outPort := em.GetOutPort(1)
if outPort == nil {
return -1, fmt.Errorf("CreateTimer outParam 1 not found")
@@ -676,7 +680,7 @@ func (em *CloseTimer) Exec() (int, error) {
}
id := uint64(timerID)
ok = em.gr.IBlueprintModule.CancelTimerId(&id)
ok = em.gr.IBlueprintModule.CancelTimerId(em.gr.graphID, &id)
if !ok {
log.Warnf("CloseTimer CancelTimerId:%d", id)
}