Skip to content

Commit

Permalink
Merge pull request fagongzi#199 from rrylee/fix_api_aggregation_multiCtx
Browse files Browse the repository at this point in the history
修复聚合api有依赖出现的结果丢失
  • Loading branch information
zhangxu19830126 authored Feb 6, 2020
2 parents 16c1cf4 + f348a3e commit 5df8a4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/proxy/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,11 @@ func (dn *dispatchNode) copyHeaderTo(ctx *fasthttp.RequestCtx) {
}

func (dn *dispatchNode) maybeDone() {
if nil != dn.wg {
if nil != dn.multiCtx {
dn.multiCtx.completePart(dn.node.meta.AttrName, dn.getResponseBody())
dn.wg.Done()
if nil != dn.wg {
dn.wg.Done()
}
}
}

Expand Down

0 comments on commit 5df8a4e

Please sign in to comment.