Skip to content

Commit

Permalink
expose seq in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Apr 21, 2014
1 parent 1452947 commit f7569bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions message.js
Expand Up @@ -45,6 +45,7 @@ function Message (opts) {
self.IdExtra = opts.IdExtra || null;
self.queue = opts.queue || null;
self.is_heartbeat= opts.is_heartbeat|| false;
self.seq = opts.seq || null;

self.log = debug('cqs:message:' + (self.MessageId || 'untitled'));
}
Expand Down
1 change: 1 addition & 0 deletions queue.js
Expand Up @@ -306,6 +306,7 @@ Queue.prototype.changes = function(opts) {

var msg_opts = {}
lib.copy(change.doc, msg_opts, 'uppercase')
msg_opts.seq = change.seq;
msg_opts.MessageId = change.id.substr(prefix.length)

var msg = new message.Message(msg_opts)
Expand Down

0 comments on commit f7569bc

Please sign in to comment.