Skip to content

Commit

Permalink
[backport] fix: traffic split didn't work as expected with keep-alive…
Browse files Browse the repository at this point in the history
… connections (#306)
  • Loading branch information
pajama-coder authored and reaver-flomesh committed Jul 16, 2024
1 parent 16ce66e commit e6e488e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
(path, headers) => matchPath(path) && headerRules.every(([k, v]) => v.test(headers[k] || '')) && (
__route = config,
__service = service,
__cluster = clusterCache.get(balancer.borrow()?.id),
__cluster = clusterCache.get(balancer.borrow({})?.id),
failoverBalancer && (
_failoverCluster = clusterCache.get(failoverBalancer.borrow()?.id)
),
Expand All @@ -53,7 +53,7 @@
(path) => matchPath(path) && (
__route = config,
__service = service,
__cluster = clusterCache.get(balancer.borrow()?.id),
__cluster = clusterCache.get(balancer.borrow({})?.id),
failoverBalancer && (
_failoverCluster = clusterCache.get(failoverBalancer.borrow()?.id)
),
Expand Down

0 comments on commit e6e488e

Please sign in to comment.