Skip to content

Commit

Permalink
chore: resolve requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
0utplay committed Jan 29, 2025
1 parent 95e7a9a commit bb76c8d
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,8 @@ public boolean deploy(@NonNull ServiceTemplate target, @NonNull InputStream inpu
@NonNull Path directory,
@Nullable Predicate<Path> filter
) {
try (var inputStream = ZipUtil.zipToStream(directory, filter)) {
return this.deployAsync(target, inputStream);
} catch (IOException exception) {
return CompletableFuture.completedFuture(false);
}
return TaskUtil.supplyAsync(() -> ZipUtil.zipToStream(directory, filter))
.thenCompose(stream -> this.deployAsync(target, stream));
}

/**
Expand Down

0 comments on commit bb76c8d

Please sign in to comment.