File tree Expand file tree Collapse file tree
xds/src/main/java/io/grpc/xds Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments