Skip to content

Commit

Permalink
Remove useless
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed Aug 30, 2024
1 parent 77ff907 commit ac0185a
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
package com.jd.live.agent.governance.invoke.loadbalance.response;

import com.jd.live.agent.core.extension.annotation.Extension;
import com.jd.live.agent.core.inject.annotation.Inject;
import com.jd.live.agent.core.inject.annotation.Injectable;
import com.jd.live.agent.core.util.URI;
import com.jd.live.agent.core.util.time.Timer;
import com.jd.live.agent.governance.instance.Endpoint;
import com.jd.live.agent.governance.invoke.Invocation;
import com.jd.live.agent.governance.invoke.counter.Counter;
Expand All @@ -38,7 +35,6 @@
* A load balancer that selects the endpoint with the shortest response time for an outbound request.
* It is from org.apache.dubbo.rpc.cluster.loadbalance.ShortestResponseLoadBalance
*/
@Injectable
@Extension(value = ShortestResponseLoadBalancer.LOAD_BALANCER_NAME, order = LoadBalancer.ORDER_SHORTEST_RESPONSE)
public class ShortestResponseLoadBalancer extends AbstractLoadBalancer {

Expand All @@ -47,9 +43,6 @@ public class ShortestResponseLoadBalancer extends AbstractLoadBalancer {
*/
public static final String LOAD_BALANCER_NAME = "SHORTEST_RESPONSE";

@Inject
private Timer timer;

@Override
protected <T extends Endpoint> Candidate<T> doElect(List<T> endpoints, Invocation<?> invocation) {
// Number of invokers
Expand Down

0 comments on commit ac0185a

Please sign in to comment.