Skip to content

Commit

Permalink
fix: poll action
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangliang committed Jun 8, 2021
1 parent faff41b commit 742ef1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (n *Action) OnTick(tick *core.Tick) behavior3go.Status {
outcome.Consume = time.Since(begin.(time.Time)).Nanoseconds()
}
if begin == nil && status == behavior3go.RUNNING {
tick.Blackboard.SetMem(n.name, start)
tick.Blackboard.SetMem(beginKey, start)
}
actorCtx := tick.Blackboard.GetMem("actorCtx").(actor.Context)
actorCtx.Send(job.statPID, &outcome)
Expand Down

0 comments on commit 742ef1d

Please sign in to comment.