@@ -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,12 @@ 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
+ );
265
267
}
266
268
267
269
@ Override
@@ -275,10 +277,12 @@ public FileInfo addSource(AddFileRequest request) throws ResponseException {
275
277
put ((code , message ) -> StringUtils .contains (message , "Invalid SRX specified" ), new ResponseException ("Invalid SRX file specified" ));
276
278
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
279
}};
278
- return executeRequestWithPossibleRetry (
280
+ return executeRequestWithPossibleRetries (
279
281
errorHandlers ,
280
- () -> this .client .getSourceFilesApi ()
281
- .addFile (this .projectId , request ).getData ());
282
+ () -> this .client .getSourceFilesApi ().addFile (this .projectId , request ).getData (),
283
+ 3 ,
284
+ 2 * 1000
285
+ );
282
286
}
283
287
284
288
@ Override
@@ -325,7 +329,7 @@ public void uploadTranslations(String languageId, UploadTranslationsRequest requ
325
329
errorhandlers ,
326
330
() -> this .client .getTranslationsApi ().uploadTranslations (this .projectId , languageId , request ),
327
331
3 ,
328
- 6 * 1000
332
+ 2 * 1000
329
333
);
330
334
}
331
335
0 commit comments