Skip to content

Commit

Permalink
Remove redundant error listener from Redis client (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisJEllis authored and JustinBeckwith committed Jun 12, 2018
1 parent 0f41e30 commit 30f7631
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions appengine/redis/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ const client = redis.createClient(

// Create a simple little server.
http.createServer((req, res) => {
client.on('error', (err) => console.log('Error', err));

// Track every IP that has visited this site
const listName = 'IPs';
client.lpush(listName, req.connection.remoteAddress);
Expand Down

0 comments on commit 30f7631

Please sign in to comment.