lloyd / node-toobusy

Build Node.JS servers that don't fall over.
1.3k stars 128 forks source link

require('toobusy').maxLag(10) does not return a function #51

Open arnaudchenyensu opened 8 years ago

arnaudchenyensu commented 8 years ago

When using:

var toobusy = require('toobusy').maxLag(10);

toobusy is not a function. The right way seems to be:

var toobusy = require('toobusy');
toobusy.maxLag(10)

Therefore, the README is misleading IMO.