From 25adc4bb1d6b7f7fae0f4edeae6213379487ca3b Mon Sep 17 00:00:00 2001 From: chenzhiguo Date: Mon, 6 Jan 2025 16:06:15 +0800 Subject: [PATCH] Fix grpc routing issue --- .../com/jd/live/agent/governance/invoke/OutboundInvocation.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/OutboundInvocation.java b/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/OutboundInvocation.java index 59085f12..f220b5e7 100644 --- a/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/OutboundInvocation.java +++ b/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/OutboundInvocation.java @@ -196,8 +196,6 @@ public RouteTarget getRouteTarget() { if (null == routeTarget) { if (instances == null) { routeTarget = RouteTarget.forward(new ArrayList<>()); - } else if (instances instanceof ArrayList) { - routeTarget = RouteTarget.forward(instances); } else { // use array list to improve performance. routeTarget = RouteTarget.forward(new ArrayList<>(instances));