FBGlobalTransformCache: retry on server-side errors

Reviewed By: cpojer

Differential Revision: D5200923

fbshipit-source-id: 9fd0d65e8d663437d27a3837580b07e386f70120
This commit is contained in:
Jean Lauliac 2017-06-07 11:14:29 -07:00 committed by Facebook Github Bot
parent ef7965df63
commit 01ecd43c62
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class URIBasedGlobalTransformCache {
* There may be other types of error we'd want to retry for, but these are
* the ones we experienced the most in practice.
*/
static shouldRetryAfterThatError(error: Error): boolean {
static shouldRetryAfterThatError(error: mixed): boolean {
return (
error instanceof FetchError && error.type === 'request-timeout' || (
error instanceof FetchFailedError &&