Browse Source

[add] down ping delay

B Thibault 8 years ago
parent
commit
a2d12ac84c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      srv/src/slackManager.js

+ 3 - 1
srv/src/slackManager.js

@@ -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 [