Skip to content

Commit 7f82466

Browse files
authored
Fix default requeueDelay and documentation (#205)
1 parent c1f97b7 commit 7f82466

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ options object.
2626
event.
2727
* ```maxAttempts: 0``` <br/>
2828
The number of times a given message will be attempted (given to MESSAGE handler) before it will be handed to the DISCARD handler and then automatically finished. 0 means that there is **no limit.** If no DISCARD handler is specified and `maxAttempts > 0`, then the message will be finished automatically when the number of attempts has been exhausted.
29-
* ```requeueDelay: 90``` <br/>
30-
The default amount of time (seconds) a message requeued should be delayed by before being dispatched by nsqd.
29+
* ```requeueDelay: 90,000 (90secs)``` <br/>
30+
The default amount of time (milliseconds) a message requeued should be delayed by before being dispatched by nsqd.
3131
* ```nsqdTCPAddresses``` <br/>
3232
A string or an array of strings representing the host/port pair for nsqd instances.
3333
<br/> For example: `['localhost:4150']`

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ConnectionConfig {
1717
messageTimeout: null,
1818
outputBufferSize: null,
1919
outputBufferTimeout: null,
20-
requeueDelay: 90,
20+
requeueDelay: 90000,
2121
sampleRate: null,
2222
snappy: false,
2323
tls: false,

0 commit comments

Comments
 (0)