|
@@ -1,6 +1,8 @@
|
|
|
|
|
|
|
|
const Slack = require('./slack.js').Slack
|
|
const Slack = require('./slack.js').Slack
|
|
|
,INACTIVE_DELAY = 120000
|
|
,INACTIVE_DELAY = 120000
|
|
|
|
|
+ ,PING_DELAY = 600000
|
|
|
|
|
+;
|
|
|
|
|
|
|
|
function SlackManager() {
|
|
function SlackManager() {
|
|
|
this.cache = require('memory-cache');
|
|
this.cache = require('memory-cache');
|
|
@@ -13,7 +15,7 @@ setInterval(function() {
|
|
|
keys.forEach(function(instKey) {
|
|
keys.forEach(function(instKey) {
|
|
|
instance.cache.get(instKey).ping();
|
|
instance.cache.get(instKey).ping();
|
|
|
});
|
|
});
|
|
|
-}, 60000);
|
|
|
|
|
|
|
+}, PING_DELAY);
|
|
|
|
|
|
|
|
SlackManager.prototype.getScope = function() {
|
|
SlackManager.prototype.getScope = function() {
|
|
|
return [
|
|
return [
|