node-redisscan icon indicating copy to clipboard operation
node-redisscan copied to clipboard

example causes error

Open stockholmux opened this issue 12 years ago • 2 comments

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.

stockholmux avatar Feb 21 '14 15:02 stockholmux

thank you @stockholmux this also fixed it for me

valmassoi avatar Oct 07 '17 17:10 valmassoi

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.

nitmws avatar Mar 17 '18 18:03 nitmws