Skip to content

Commit b0632fc

Browse files
committed
Address comment
1 parent 34558dd commit b0632fc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

xds/src/main/java/io/grpc/xds/GcpAuthenticationFilter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ final class GcpAuthenticationFilter implements Filter {
6868
}
6969

7070
static final class Provider implements Filter.Provider {
71-
long cacheSize = 10;
71+
private final int cacheSize = 10;
7272

7373
@Override
7474
public String[] typeUrls() {
@@ -82,7 +82,7 @@ public boolean isClientFilter() {
8282

8383
@Override
8484
public GcpAuthenticationFilter newInstance(String name) {
85-
return new GcpAuthenticationFilter(name, (int) cacheSize);
85+
return new GcpAuthenticationFilter(name, cacheSize);
8686
}
8787

8888
@Override
@@ -99,6 +99,7 @@ public ConfigOrError<GcpAuthenticationConfig> parseFilterConfig(Message rawProto
9999
return ConfigOrError.fromError("Invalid proto: " + e);
100100
}
101101

102+
long cacheSize = 10;
102103
// Validate cache_config
103104
if (gcpAuthnProto.hasCacheConfig()) {
104105
TokenCacheConfig cacheConfig = gcpAuthnProto.getCacheConfig();

0 commit comments

Comments
 (0)