Removed method isTestingOnOcisOrReva, and refactored its use

This commit is contained in:
Prarup Gurung committed 2023-03-09 14:25:15 +05:45
1 parent d9092d7e17
commit fab9bfc734
11 files changed
+147 -1063

No files matched your search

+3 -6
View File
@@ -76,12 +76,9 @@ class HttpRequestHelper {
* @return int
*/
public static function numRetriesOnHttpTooEarly():int {
if (OcisHelper::isTestingOnOcisOrReva()) {
// Currently reva and oCIS may return HTTP_TOO_EARLY
// So try up to 10 times before giving up.
return 10;
}
return 0;
// Currently reva and oCIS may return HTTP_TOO_EARLY
// So try up to 10 times before giving up.
return 10;
}
/**