Skip to content

Commit

Permalink
fix: compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Oct 9, 2023
1 parent f5c269a commit d030ae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class S3DataSink extends ParallelSink {
private S3DataSink() {}

@Override
protected StreamResult<Void> transferParts(List<DataSource.Part> parts) {
protected StreamResult<Object> transferParts(List<DataSource.Part> parts) {
for (var part : parts) {
try (var input = part.openStream()) {

Expand Down Expand Up @@ -90,7 +90,7 @@ protected StreamResult<Void> transferParts(List<DataSource.Part> parts) {
}

@Override
protected StreamResult<Void> complete() {
protected StreamResult<Object> complete() {
var completeKeyName = keyName + ".complete";
var request = PutObjectRequest.builder().bucket(bucketName).key(completeKeyName).build();
try {
Expand All @@ -103,7 +103,7 @@ protected StreamResult<Void> complete() {
}

@NotNull
private StreamResult<Void> uploadFailure(Exception e, String keyName) {
private StreamResult<Object> uploadFailure(Exception e, String keyName) {
var message = format("Error writing the %s object on the %s bucket: %s", keyName, bucketName, e.getMessage());
monitor.severe(message, e);
return StreamResult.error(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public StreamResult<Stream<Part>> openPartStream() {
}

@Override
public void close() {

public void close() throws Exception {
client.close();
}

private static class S3Part implements Part {
Expand Down

0 comments on commit d030ae7

Please sign in to comment.