Browse Source

Fix CachingRouteLocator issue during routes initialization (#1460)

pull/1554/head
Viachaslau-Zinkevich 5 years ago committed by Spencer Gibb
parent
commit
3605a8ea67
  1. 4
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/route/CachingRouteLocator.java

4
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/route/CachingRouteLocator.java

@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
package org.springframework.cloud.gateway.route;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import reactor.cache.CacheFlux;
import reactor.core.publisher.Flux;
@ -37,7 +37,7 @@ public class CachingRouteLocator @@ -37,7 +37,7 @@ public class CachingRouteLocator
private final Flux<Route> routes;
private final Map<String, List> cache = new HashMap<>();
private final Map<String, List> cache = new ConcurrentHashMap<>();
public CachingRouteLocator(RouteLocator delegate) {
this.delegate = delegate;

Loading…
Cancel
Save