You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/11/01 13:47:00 UTC

[jira] [Commented] (ARTEMIS-3547) client load balance code can be improved

    [ https://issues.apache.org/jira/browse/ARTEMIS-3547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17436843#comment-17436843 ] 

ASF subversion and git services commented on ARTEMIS-3547:
----------------------------------------------------------

Commit 89253b8513d597af04c631ce0b32882113e5d84b in activemq-artemis's branch refs/heads/main from domson-tech
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=89253b8 ]

ARTEMIS-3547 remove first field to improve code

first field is not necessary here, only pos field can work.
So remove first here.


> client load balance code can be improved
> ----------------------------------------
>
>                 Key: ARTEMIS-3547
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3547
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 2.19.0
>            Reporter: Jianjiang Mu
>            Priority: Minor
>             Fix For: 2.20.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> org.apache.activemq.artemis.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy class in aretemis-core-client can be improved!
> Two field is used here, one is first(boolean type)and one is pos(int type).The "first“ field is not necessary here. Only "pos" can do the job.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)