Skip to content

Commit

Permalink
Fixes #218
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghnuberath committed Oct 20, 2017
1 parent 226753b commit 09324e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion documentation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Ravel API
version: 0.22.3
version: 0.22.4
versions:
- 0.22.3
- 0.22.2
- 0.22.1
- 0.22.0
Expand Down
4 changes: 1 addition & 3 deletions lib/util/kvstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ function createClient (ravelInstance, restrict = true) {
if (ravelInstance.get('redis password')) {
client.auth(ravelInstance.get('redis password'));
}
const channel = `ravel-keepalive/`;
const msg = `${Date.now()}/${Math.random()}`;

// keepalive when not testing
const redisKeepaliveInterval = setInterval(() => {
client && client.publish && client.publish(channel, msg);
client && client.ping && client.ping();
}, ravelInstance.get('redis keepalive interval'));
ravelInstance.once('end', () => {
clearInterval(redisKeepaliveInterval);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ravel",
"version": "0.22.3",
"version": "0.22.4",
"author": "Sean McIntyre <[email protected]>",
"description": "Ravel Rapid Application Development Framework",
"engines": {
Expand Down

0 comments on commit 09324e1

Please sign in to comment.