Fix broken Mono chain

This commit restore broken Mono chain in WebSessionServerCsrfTokenRepository.generateToken(ServerWebExchange).

Closes gh-9017
This commit is contained in:
Tomoki Tsubaki 2020-09-16 22:11:36 +09:00 committed by Josh Cummings
parent 2c297fbd63
commit 65f788532e
1 changed files with 1 additions and 2 deletions

View File

@ -52,8 +52,7 @@ public class WebSessionServerCsrfTokenRepository implements ServerCsrfTokenRepos
@Override
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) {
Mono.just(exchange).publishOn(Schedulers.boundedElastic());
return Mono.fromCallable(() -> createCsrfToken());
return Mono.fromCallable(() -> createCsrfToken()).subscribeOn(Schedulers.boundedElastic());
}
@Override