Skip to content

Commit 52c3a9e

Browse files
authored
Fix silly bug in matching client (#3910)
1 parent a65c7d4 commit 52c3a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/matching/loadbalancer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ func (lb *defaultLoadBalancer) pickPartition(
126126
return taskQueue.GetName()
127127
}
128128

129-
n := util.Min(1, nPartitions(nsName.String(), tqName.BaseNameString(), taskQueueType))
129+
n := util.Max(1, nPartitions(nsName.String(), tqName.BaseNameString(), taskQueueType))
130130
return tqName.WithPartition(rand.Intn(n)).FullName()
131131
}

0 commit comments

Comments
 (0)