Skip to content

Commit

Permalink
fix: retry interceptor goroutine blocking (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
kytool committed Mar 15, 2024
1 parent d9c57b9 commit 31bec67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/interceptor/retry/interceptor.go
Expand Up @@ -144,6 +144,7 @@ func (i *Interceptor) Intercept(invoker sink.Invoker, invocation sink.Invocation
rm := i.retryMeta(batch)
retryMaxCount := i.config.RetryMaxCount
if rm != nil && retryMaxCount > 0 && retryMaxCount < rm.count {
i.signChan <- Reset
return result.DropWith(errors.New(fmt.Sprintf("retry reaches the limit: retryMaxCount(%d)", retryMaxCount)))
}
i.in <- batch
Expand Down

0 comments on commit 31bec67

Please sign in to comment.