@@ -221,7 +221,7 @@ public Long uploadStorage(String fileName, InputStream content) throws Response
221
221
errorHandlers ,
222
222
() -> this .client .getStorageApi ().addStorage (fileName , content ).getData (),
223
223
3 ,
224
- 6 * 1000
224
+ 2 * 1000
225
225
);
226
226
return storage .getId ();
227
227
}
@@ -258,10 +258,13 @@ public void updateSource(Long sourceId, UpdateFileRequest request) throws Respon
258
258
put ((code , message ) -> StringUtils .contains (message , "Invalid SRX specified" ), new ResponseException ("Invalid SRX file specified" ));
259
259
put ((code , message ) -> code .equals ("409" ), new FileInUpdateException ());
260
260
}};
261
- executeRequestWithPossibleRetry (
261
+ executeRequestWithPossibleRetries (
262
262
errorHandlers ,
263
- () -> this .client .getSourceFilesApi ()
264
- .updateOrRestoreFile (this .projectId , sourceId , request ));
263
+ () -> this .client .getSourceFilesApi ().updateOrRestoreFile (this .projectId , sourceId , request ),
264
+ 3 ,
265
+ 2 * 1000
266
+
267
+ );
265
268
}
266
269
267
270
@ Override
@@ -275,10 +278,12 @@ public FileInfo addSource(AddFileRequest request) throws ResponseException {
275
278
put ((code , message ) -> StringUtils .contains (message , "Invalid SRX specified" ), new ResponseException ("Invalid SRX file specified" ));
276
279
put ((code , message ) -> StringUtils .containsAny (message , "isEmpty" , "Value is required and can't be empty" ), new EmptyFileException ("Value is required and can't be empty" ));
277
280
}};
278
- return executeRequestWithPossibleRetry (
281
+ return executeRequestWithPossibleRetries (
279
282
errorHandlers ,
280
- () -> this .client .getSourceFilesApi ()
281
- .addFile (this .projectId , request ).getData ());
283
+ () -> this .client .getSourceFilesApi ().addFile (this .projectId , request ).getData (),
284
+ 3 ,
285
+ 2 * 1000
286
+ );
282
287
}
283
288
284
289
@ Override
@@ -325,7 +330,7 @@ public void uploadTranslations(String languageId, UploadTranslationsRequest requ
325
330
errorhandlers ,
326
331
() -> this .client .getTranslationsApi ().uploadTranslations (this .projectId , languageId , request ),
327
332
3 ,
328
- 6 * 1000
333
+ 2 * 1000
329
334
);
330
335
}
331
336
0 commit comments