mirror of https://github.com/status-im/metro.git
packager: socket timeout for global cache
Reviewed By: davidaurelio Differential Revision: D4393059 fbshipit-source-id: 23c0c9ab69388ffd6de136d07728d44d1d8a947a
This commit is contained in:
parent
f6cf189037
commit
5cdfc42c71
|
@ -273,7 +273,7 @@ class GlobalTransformCache {
|
||||||
* megabytes each.
|
* megabytes each.
|
||||||
*/
|
*/
|
||||||
_fetchFromURI(uri: string, callback: FetchCallback) {
|
_fetchFromURI(uri: string, callback: FetchCallback) {
|
||||||
request.get({uri, json: true}, (error, response, unvalidatedResult) => {
|
request.get({uri, json: true, timeout: 4000}, (error, response, unvalidatedResult) => {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
callback(error);
|
callback(error);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue