Skip to content

Commit

Permalink
delay first peer check until tasks have been loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Sep 6, 2012
1 parent 35a38b6 commit 5cbf3db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions initializers/initRedis.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,8 @@ var initPingAndCheck = function(api, next){

// start timers
api.redis.ping(api, function(){
api.redis.checkForDroppedPeers(api, function(){
next();
});
api.redis.lostPeerTimer = setTimeout(api.redis.checkForDroppedPeers, api.redis.lostPeerCheckTime, api);
next();
});

}
Expand Down

0 comments on commit 5cbf3db

Please sign in to comment.