Skip to content

Commit a4a4002

Browse files
committed
Merge pull request #3711 from qnnn/fix-generateId
ensure generateId executes on the scheduler thread specified by publishOn
1 parent 9413619 commit a4a4002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/route/CompositeRouteDefinitionLocator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public Flux<RouteDefinition> getRouteDefinitions() {
6565
}
6666

6767
protected Mono<String> randomId() {
68-
return Mono.fromSupplier(idGenerator::generateId).map(UUID::toString).publishOn(Schedulers.boundedElastic());
68+
return Mono.fromSupplier(idGenerator::generateId).publishOn(Schedulers.boundedElastic()).map(UUID::toString);
6969
}
7070

7171
}

0 commit comments

Comments
 (0)