Skip to content

Commit

Permalink
Removed .subscribeOn(Schedulers.boundedElastic()) from vault token su…
Browse files Browse the repository at this point in the history
…ppliers
  • Loading branch information
artem-v committed Apr 19, 2021
1 parent ace8bd4 commit d1e2c2f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;

public final class VaultClientTokenSupplier {

Expand Down Expand Up @@ -88,7 +87,6 @@ public VaultClientTokenSupplier vaultRole(String vaultRole) {
public Mono<String> getToken() {
return Mono.fromRunnable(this::validate)
.then(Mono.fromCallable(this::getToken0))
.subscribeOn(Schedulers.boundedElastic())
.doOnSubscribe(s -> LOGGER.debug("[getToken] Getting vault client token"))
.doOnSuccess(s -> LOGGER.debug("[getToken][success] result: {}", mask(s)))
.doOnError(th -> LOGGER.error("[getToken][error] cause: {}", th.toString()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.slf4j.LoggerFactory;
import reactor.core.Exceptions;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;

public final class VaultServiceTokenSupplier {

Expand Down Expand Up @@ -112,7 +111,6 @@ public Mono<String> getToken(Map<String, String> tags) {
vaultToken -> {
final String uri = buildServiceTokenUri(tags);
return Mono.fromCallable(() -> rpcGetToken(uri, vaultToken))
.subscribeOn(Schedulers.boundedElastic())
.doOnSubscribe(
s ->
LOGGER.debug(
Expand Down

0 comments on commit d1e2c2f

Please sign in to comment.