node-redisscan
node-redisscan copied to clipboard
example causes error
Running the example as is produces the following error
events.js:72
throw er; // Unhandled 'error' event
It seems the number of arguments for each_callback seems to be wrong (in the repo it is function (type, key, subkey, value, cb)) but it works if you change it function (type, key, subkey, something, value, cb) - something seems to be a list length? It is always null otherwise.
thank you @stockholmux this also fixed it for me
Thank you both for pointing at this documentation error in the README.md file, the "something" saved me from getting crazy.
@fritzy could you fix this please.