Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ermontross committed Nov 8, 2024
1 parent 0cc5822 commit ae205cf
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ public CompletionStage<T> findAsync(String path) {
*/
public T findSync(String path) {
try {
return findAsync(path).toCompletableFuture().get(zkConfig.getZkConnectionTimeoutMs(), TimeUnit.MILLISECONDS);
return findAsync(path)
.toCompletableFuture()
.get(zkConfig.getZkConnectionTimeoutMs(), TimeUnit.MILLISECONDS);
} catch (InterruptedException | ExecutionException | TimeoutException e) {
throw new InternalMetadataStoreException("Error fetching node at path " + path, e);
}
Expand Down Expand Up @@ -283,7 +285,9 @@ public CompletableFuture<List<T>> listAsync() {

public List<T> listSync() {
try {
return listAsync().toCompletableFuture().get(zkConfig.getZkConnectionTimeoutMs(), TimeUnit.MILLISECONDS);
return listAsync()
.toCompletableFuture()
.get(zkConfig.getZkConnectionTimeoutMs(), TimeUnit.MILLISECONDS);
} catch (ExecutionException | InterruptedException | TimeoutException e) {
throw new InternalMetadataStoreException("Error listing nodes", e);
}
Expand Down

0 comments on commit ae205cf

Please sign in to comment.