Revert "Create the CSRF token on the bounded elactic scheduler"

This reverts commit 5bce912446eec508bb2c2fca1fb139b34809c86e.
This commit is contained in:
Josh Cummings 2020-09-24 13:58:10 -06:00
parent 41e6347523
commit 486722e5c0
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443

View File

@ -27,7 +27,6 @@ import org.springframework.util.StringUtils;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
/**
* A {@link ServerCsrfTokenRepository} that persists the CSRF token in a cookie named "XSRF-TOKEN" and
@ -64,7 +63,7 @@ public final class CookieServerCsrfTokenRepository implements ServerCsrfTokenRep
@Override
public Mono<CsrfToken> generateToken(ServerWebExchange exchange) {
return Mono.fromCallable(this::createCsrfToken).subscribeOn(Schedulers.boundedElastic());
return Mono.fromCallable(this::createCsrfToken);
}
@Override