Skip to content

Commit

Permalink
Fix broken Mono chain
Browse files Browse the repository at this point in the history
This commit restore broken Mono chain in WebSessionServerCsrfTokenRepository.generateToken(ServerWebExchange).

Closes gh-9017
  • Loading branch information
tt4g committed Sep 16, 2020
1 parent 57c5ec2 commit 4612a1e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4612a1e

Please sign in to comment.