Skip to content

Commit

Permalink
Remove timeout when uploading files (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Oct 22, 2021
1 parent af9d7fb commit f41653c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
Expand Down Expand Up @@ -119,7 +118,6 @@ private UploadObject generateUploadObject(FilePath path, StorageAccountInfo acco

static final class UploadOnAgent extends MasterToSlaveFileCallable<List<UploadResult>> {
private static final Logger LOGGER = Logger.getLogger(UploadOnAgent.class.getName());
private static final int TIMEOUT = 30;
private static final int ERROR_ON_UPLOAD = 500;

private final ProxyConfiguration proxy;
Expand Down Expand Up @@ -164,7 +162,7 @@ private UploadResult uploadCloudFile(ShareFileClient fileClient, UploadObject up

ShareFileUploadOptions fileUploadOptions = new ShareFileUploadOptions(bis);
Response<ShareFileUploadInfo> response = fileClient
.uploadWithResponse(fileUploadOptions, Duration.ofSeconds(TIMEOUT), null);
.uploadWithResponse(fileUploadOptions, null, null);

long endTime = System.currentTimeMillis();

Expand Down

0 comments on commit f41653c

Please sign in to comment.