Skip to content

Commit

Permalink
Revert "Create the CSRF token on the bounded elactic scheduler"
Browse files Browse the repository at this point in the history
Reactor did not add bounded elastic until a later version.

This reverts commit c0154f2.
  • Loading branch information
rwinch committed May 18, 2020
1 parent c0154f2 commit f58a262
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -18,7 +18,6 @@
import org.springframework.util.Assert;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
Expand Down Expand Up @@ -49,9 +48,7 @@ public class WebSessionServerCsrfTokenRepository

@Override
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) {
return Mono.just(exchange)
.publishOn(Schedulers.boundedElastic())
.fromCallable(() -> createCsrfToken());
return Mono.fromCallable(() -> createCsrfToken());
}

@Override
Expand Down

0 comments on commit f58a262

Please sign in to comment.