Fix a sporadic warning in cluster-geo, and fix test to not overload the test-watcher.

This commit is contained in:
Adam Ierymenko 2015-11-10 13:09:58 -08:00
commit 0e4a2c378f
3 changed files with 25 additions and 16 deletions

View file

@ -5,8 +5,14 @@
//
// GeoIP cache TTL in ms
var CACHE_TTL = (60 * 60 * 24 * 60 * 1000); // 60 days
var CACHE_TTL = (60 * 60 * 24 * 120 * 1000); // 120 days
// Globally increase event emitter maximum listeners
var EventEmitter = require('events');
EventEmitter.prototype._maxListeners = 1000;
process.setMaxListeners(1000);
// Load config
var config = require(__dirname + '/config.js');
if (!config.maxmind) {