Skip to content

Commit

Permalink
Merge pull request #80 from folio-org/EDGPATRON-86
Browse files Browse the repository at this point in the history
EDGPATRON-86: removing VertxCompletableFuture
  • Loading branch information
K-Felk authored Jun 3, 2022
2 parents fe962ea + 5293509 commit 519b4d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import org.folio.edge.core.cache.TokenCache.NotInitializedException;
import org.folio.edge.patron.cache.PatronIdCache;

import me.escoffier.vertx.completablefuture.VertxCompletableFuture;

public class PatronIdHelper {

private static final Logger logger = LogManager.getLogger(PatronIdHelper.class);
Expand All @@ -18,7 +16,7 @@ private PatronIdHelper() {
}

public static CompletableFuture<String> lookupPatron(PatronOkapiClient client, String tenant, String extPatronId) {
VertxCompletableFuture<String> future = new VertxCompletableFuture<>(client.vertx);
CompletableFuture<String> future = new CompletableFuture<>();

String patronId = null;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import io.vertx.core.MultiMap;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import me.escoffier.vertx.completablefuture.VertxCompletableFuture;
import org.folio.edge.patron.model.Hold;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
Expand Down Expand Up @@ -46,7 +45,7 @@ public void getPatron(String extPatronId, Handler<HttpResponse<Buffer>> response
}

public CompletableFuture<String> getPatron(String extPatronId) {
VertxCompletableFuture<String> future = new VertxCompletableFuture<>(vertx);
CompletableFuture<String> future = new CompletableFuture<>();

getPatron(
extPatronId,
Expand Down

0 comments on commit 519b4d9

Please sign in to comment.