File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
vault/src/main/java/io/scalecube/security/vault Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1212import org .slf4j .Logger ;
1313import org .slf4j .LoggerFactory ;
1414import reactor .core .publisher .Mono ;
15+ import reactor .core .scheduler .Schedulers ;
1516
1617public final class VaultClientTokenSupplier {
1718
@@ -87,6 +88,7 @@ public VaultClientTokenSupplier vaultRole(String vaultRole) {
8788 public Mono <String > getToken () {
8889 return Mono .fromRunnable (this ::validate )
8990 .then (Mono .fromCallable (this ::getToken0 ))
91+ .subscribeOn (Schedulers .boundedElastic ())
9092 .doOnSuccess (s -> LOGGER .debug ("[getToken][success] result: {}" , mask (s )))
9193 .doOnError (th -> LOGGER .error ("[getToken][error] cause: {}" , th .toString ()));
9294 }
Original file line number Diff line number Diff line change 1414import org .slf4j .LoggerFactory ;
1515import reactor .core .Exceptions ;
1616import reactor .core .publisher .Mono ;
17+ import reactor .core .scheduler .Schedulers ;
1718
1819public final class VaultServiceTokenSupplier {
1920
@@ -107,6 +108,7 @@ public VaultServiceTokenSupplier serviceTokenNameBuilder(
107108 public Mono <String > getToken (Map <String , String > tags ) {
108109 return Mono .fromRunnable (this ::validate )
109110 .then (Mono .defer (() -> vaultTokenSupplier ))
111+ .subscribeOn (Schedulers .boundedElastic ())
110112 .flatMap (
111113 vaultToken -> {
112114 final String uri = buildServiceTokenUri (tags );
You can’t perform that action at this time.
0 commit comments