1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Update README.md

In multi example 
replacing err => setError
This commit is contained in:
Nikhil Savaliya
2020-07-06 13:20:12 +05:30
committed by GitHub
parent 0041e3e53d
commit 9e86cf3c52

View File

@@ -638,7 +638,7 @@ client.watch("foo", function(watchError) {
* If err is null, it means Redis successfully attempted
* the operation.
*/
if (execError) throw err;
if (execError) throw execError;
/**
* If results === null, it means that a concurrent client
@@ -675,7 +675,7 @@ clients.watcher.watch("foo", function(watchError) {
// if you comment out the next line, the transaction will work
clients.modifier.set("foo", Math.random(), setError => {
if (setError) throw err;
if (setError) throw setError;
});
// using a setTimeout here to ensure that the MULTI/EXEC will come after the SET.