mirror of
https://github.com/status-im/metro.git
synced 2025-03-02 19:50:28 +00:00
Rate limit HasteMap
Reviewed By: davidaurelio Differential Revision: D4021676 fbshipit-source-id: 383f9a17ac8ede72f41939192ec25a6277a36864
This commit is contained in:
parent
9383f292aa
commit
5fe2c32cfc
@ -12,6 +12,7 @@ const EventEmitter = require('events');
|
|||||||
|
|
||||||
const path = require('../fastpath');
|
const path = require('../fastpath');
|
||||||
const getPlatformExtension = require('../lib/getPlatformExtension');
|
const getPlatformExtension = require('../lib/getPlatformExtension');
|
||||||
|
const throat = require('throat');
|
||||||
|
|
||||||
const GENERIC_PLATFORM = 'generic';
|
const GENERIC_PLATFORM = 'generic';
|
||||||
const NATIVE_PLATFORM = 'native';
|
const NATIVE_PLATFORM = 'native';
|
||||||
@ -33,6 +34,9 @@ class HasteMap extends EventEmitter {
|
|||||||
this._preferNativePlatform = preferNativePlatform;
|
this._preferNativePlatform = preferNativePlatform;
|
||||||
this._helpers = helpers;
|
this._helpers = helpers;
|
||||||
this._platforms = platforms;
|
this._platforms = platforms;
|
||||||
|
|
||||||
|
this._processHastePackage = throat(1, this._processHastePackage.bind(this));
|
||||||
|
this._processHasteModule = throat(1, this._processHasteModule.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user