New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanitized options #504
Sanitized options #504
Changes from 1 commit
2fa99d5
03cabe5
e9784d3
9e882c3
5271193
2a215fd
515d6f6
80a1507
b9c420a
c40f649
fe97c07
81639b9
d5abe9f
616249c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,9 +79,9 @@ Quick Guide | |
var Queue = require('bull'); | ||
|
||
var videoQueue = Queue('video transcoding', {redis: {port: 6379, host: '127.0.0.1'}}); | ||
var audioQueue = Queue('audio transcoding'); | ||
var audioQueue = Queue('audio transcoding', 'redis://127.0.0.1:6379'); | ||
var imageQueue = Queue('image transcoding'); | ||
var pdfQueue = Queue('pdf transcoding'); | ||
var pdfQueue = new Queue('pdf transcoding'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for the examples above too, for consistency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. My idea was to show different ways to instantiate in the examples. I could clarify with a comment instead. I like to be able to instantiate without new, but maybe this is not a best practice anymore. |
||
|
||
videoQueue.process(function(job, done){ | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be clearer to use the redis string version here, eg
redis://127.0.0.1:6379
, since the documentation lists theredisConnectionString
as the second option (albeit optional - but some people might not notice that)