From 1b44929d37ef905a559d82b01c814ab0b8f384f9 Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Thu, 21 Sep 2023 16:47:45 +0800 Subject: [PATCH] 7 --- .../doris/service/arrowflight/tokens/TokenManagerImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/tokens/TokenManagerImpl.java b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/tokens/TokenManagerImpl.java index f305eab8b440b4..03abeda931f200 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/tokens/TokenManagerImpl.java +++ b/fe/fe-core/src/main/java/org/apache/doris/service/arrowflight/tokens/TokenManagerImpl.java @@ -37,13 +37,11 @@ public class TokenManagerImpl implements TokenManager { private static final Logger LOG = LogManager.getLogger(TokenManagerImpl.class); private final SecureRandom generator = new SecureRandom(); - private final int cacheSize; private final int cacheExpiration; private LoadingCache tokenCache; public TokenManagerImpl(final int cacheSize, final int cacheExpiration) { - this.cacheSize = cacheSize; this.cacheExpiration = cacheExpiration; this.tokenCache = CacheBuilder.newBuilder() @@ -109,4 +107,5 @@ private SessionState getSessionState(final String token) { } return value; - + } +}