We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a5bc00 commit 5af3cd5Copy full SHA for 5af3cd5
common/bizflow/graph.go
@@ -119,7 +119,7 @@ func (g *Graph) execNext(it *item) {
119
}
120
121
122
-func (g *Graph) masterChanClosed() bool {
+func (g *Graph) eventChanClosed() bool {
123
select {
124
case _, ok := <-g.eventChan:
125
return !ok
@@ -129,11 +129,11 @@ func (g *Graph) masterChanClosed() bool {
129
130
func (g *Graph) work(it *item) {
131
// 先检查一下
132
- if g.masterChanClosed() {
+ if g.eventChanClosed() {
133
return
134
135
defer func() {
136
- if !g.masterChanClosed() {
+ if !g.eventChanClosed() {
137
g.eventChan <- it
138
139
}()
0 commit comments