diff --git a/src/main/java/com/microsoftopentechnologies/windowsazurestorage/service/UploadToFileService.java b/src/main/java/com/microsoftopentechnologies/windowsazurestorage/service/UploadToFileService.java index 7e061918..f6799fb1 100644 --- a/src/main/java/com/microsoftopentechnologies/windowsazurestorage/service/UploadToFileService.java +++ b/src/main/java/com/microsoftopentechnologies/windowsazurestorage/service/UploadToFileService.java @@ -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; @@ -119,7 +118,6 @@ private UploadObject generateUploadObject(FilePath path, StorageAccountInfo acco static final class UploadOnAgent extends MasterToSlaveFileCallable> { 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; @@ -164,7 +162,7 @@ private UploadResult uploadCloudFile(ShareFileClient fileClient, UploadObject up ShareFileUploadOptions fileUploadOptions = new ShareFileUploadOptions(bis); Response response = fileClient - .uploadWithResponse(fileUploadOptions, Duration.ofSeconds(TIMEOUT), null); + .uploadWithResponse(fileUploadOptions, null, null); long endTime = System.currentTimeMillis();