Skip to content

Commit 0769a21

Browse files
authored
Merge pull request #3711 from qnnn/fix-generateId
ensure generateId executes on the scheduler thread specified by publishOn
2 parents af2f0d6 + 0900dae commit 0769a21

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)