From fe7a0cef3a0a620a457cc03210d3ee781fa24544 Mon Sep 17 00:00:00 2001 From: godotg Date: Thu, 18 Jan 2024 10:44:32 +0800 Subject: [PATCH] chore[comment]: cache the sid after load balancer --- .../net/consumer/balancer/CachedConsistentHashLoadBalancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/src/main/java/com/zfoo/net/consumer/balancer/CachedConsistentHashLoadBalancer.java b/net/src/main/java/com/zfoo/net/consumer/balancer/CachedConsistentHashLoadBalancer.java index 6f0bd523e..d6ac44189 100644 --- a/net/src/main/java/com/zfoo/net/consumer/balancer/CachedConsistentHashLoadBalancer.java +++ b/net/src/main/java/com/zfoo/net/consumer/balancer/CachedConsistentHashLoadBalancer.java @@ -22,7 +22,7 @@ public class CachedConsistentHashLoadBalancer extends AbstractConsumerLoadBalanc private static final long MAX_CACHE_SIZE = 10_0000; /** - * cache the sid after load balancer,key:[protocolModuleId + argument] -> value:[sid] + * cache the sid after load balancer,key:[argument + protocolModuleId] -> value:[sid] */ private Cache cache = Caffeine.newBuilder() .expireAfterAccess(EXPIRED_ACCESS_DURATION, TimeUnit.MILLISECONDS)