Skip to content

Commit

Permalink
Fix processed message priority for metrics (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
richma-ms authored Jul 31, 2020
1 parent eed9c06 commit 14aaee0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ async Task SendMessagesPump()
{
// Tag the message with the priority that we're currently
// processing, so it can be used by metrics later
messages.Select(m => m.ProcessedPriority = priority);
foreach (IMessage msg in messages)
{
msg.ProcessedPriority = priority;
}

Events.ProcessingMessages(this, messages, priority);
await this.ProcessMessages(messages, fsm);
Expand Down

0 comments on commit 14aaee0

Please sign in to comment.