Skip to content

Commit

Permalink
Update for Issue mxsdev#68
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkeyt committed Nov 18, 2024
1 parent 4899dc1 commit f3c980d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/broker/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ export abstract class MessageSequence<M extends TaggedMessage> {
}, lockDurationMs),
})

message.message_annotations[Constants.lockedUntil] =
+new Date().getTime() + lockDurationMs
const locked_until = +Date.now() + lockDurationMs
message.message_annotations[Constants.lockedUntil] = new Date(locked_until)

// TODO: set drained based on whether there are more messages to send

Expand Down

0 comments on commit f3c980d

Please sign in to comment.