Skip to content

Commit

Permalink
Merge pull request #227 from Portkey-AI/fix/loadbalace-zero-weight
Browse files Browse the repository at this point in the history
Fix: allow loadbalance zero weight
  • Loading branch information
VisargD authored Feb 22, 2024
2 parents a271e60 + 34d5a49 commit f4cdbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/handlerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ export async function tryTargetsRecursively(

case "loadbalance":
currentTarget.targets.forEach((t: Options) => {
if (!t.weight) {
if (t.weight === undefined) {
t.weight = 1;
}
});
Expand Down

0 comments on commit f4cdbb2

Please sign in to comment.