Skip to content

Commit

Permalink
Adapt to CompositeFuture changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed May 16, 2023
1 parent 5b6b854 commit f0215a1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package io.vertx.ext.auth.webauthn.impl.metadata;

import io.vertx.core.CompositeFuture;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.core.http.HttpMethod;
import io.vertx.core.impl.VertxInternal;
import io.vertx.core.impl.logging.Logger;
import io.vertx.core.impl.logging.LoggerFactory;
import io.vertx.core.json.JsonArray;
Expand Down Expand Up @@ -118,7 +116,7 @@ public Future<Boolean> fetchTOC(String toc) {

entries.forEach(el -> futures.add(addEntry(e, (JsonObject) el)));

return CompositeFuture
return Future
.all(futures)
.map(true)
.otherwise(false);
Expand Down

0 comments on commit f0215a1

Please sign in to comment.