Skip to content

Commit 5af3cd5

Browse files
rename masterchan to eventchan, retryNum -= 1 when error is retryable
1 parent 1a5bc00 commit 5af3cd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/bizflow/graph.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (g *Graph) execNext(it *item) {
119119
}
120120
}
121121
}
122-
func (g *Graph) masterChanClosed() bool {
122+
func (g *Graph) eventChanClosed() bool {
123123
select {
124124
case _, ok := <-g.eventChan:
125125
return !ok
@@ -129,11 +129,11 @@ func (g *Graph) masterChanClosed() bool {
129129
}
130130
func (g *Graph) work(it *item) {
131131
// 先检查一下
132-
if g.masterChanClosed() {
132+
if g.eventChanClosed() {
133133
return
134134
}
135135
defer func() {
136-
if !g.masterChanClosed() {
136+
if !g.eventChanClosed() {
137137
g.eventChan <- it
138138
}
139139
}()

0 commit comments

Comments
 (0)