Skip to content

这不是bug吗? #811

@huxiaofeng1983

Description

@huxiaofeng1983

Describe the bug
BalanceRoundRobin代码问题

To Reproduce
for (int i = 0; i < sumWeight; i++) { for (int index = 0; i < length; i++) { if (weightList[index] > 0) { weightList[index] = weightList[index] - 1; nextSequence--; if (nextSequence == 0) { return entityList.get(index); } } } }

内层循环 for (int index = 0; i < length; i++) {...}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions