Skip to content

Commit

Permalink
feat(server): Don't write to local FS in duplex mode (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar authored May 11, 2024
1 parent 071decf commit ee44fe0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public File getFile(Path filePath) {
@Override
public void uploadPublicFile(Path filePath, InputStream content) {
aws.uploadPublicFile(filePath, content);
local.uploadPublicFile(filePath, content);
}

@Override
Expand All @@ -62,7 +61,6 @@ public String getPublicFileUrl(Path filePath) {
@Override
public void uploadPrivateFile(Path filePath, InputStream content) {
aws.uploadPrivateFile(filePath, content);
local.uploadPrivateFile(filePath, content);
}

@Override
Expand All @@ -72,7 +70,7 @@ public String getPrivateFileUrl(Path filePath) {

@Override
public void uploadZippedFiles(Path dirPath, InputStream content) {
local.uploadZippedFiles(dirPath, content);
throw new UnsupportedOperationException();
}

@Override
Expand All @@ -96,7 +94,6 @@ public List<FileInfo> listFilesInDirectory(Path dirPath) {
@Override
public void writeByteArrayToFile(Path filePath, byte[] content) {
aws.writeByteArrayToFile(filePath, content);
local.writeByteArrayToFile(filePath, content);
}

@Override
Expand Down

0 comments on commit ee44fe0

Please sign in to comment.