You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
Remove snack_case and always use camelCase
This commit is contained in:
committed by
Ruben Bridgewater
parent
a86c998a64
commit
28afc33c9a
@@ -2,7 +2,7 @@
|
||||
|
||||
var redis = require('redis');
|
||||
var client1 = redis.createClient();
|
||||
var msg_count = 0;
|
||||
var msgCount = 0;
|
||||
var client2 = redis.createClient();
|
||||
|
||||
// Most clients probably don't do much on 'subscribe'. This example uses it to coordinate things within one program.
|
||||
@@ -25,8 +25,8 @@ client1.on('unsubscribe', function (channel, count) {
|
||||
|
||||
client1.on('message', function (channel, message) {
|
||||
console.log('client1 channel ' + channel + ': ' + message);
|
||||
msg_count += 1;
|
||||
if (msg_count === 3) {
|
||||
msgCount += 1;
|
||||
if (msgCount === 3) {
|
||||
client1.unsubscribe();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user