Skip to content

Commit

Permalink
fix SA1101 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nytian committed Dec 31, 2024
1 parent dba8744 commit be208ed
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ public virtual async Task<DurableTaskTriggerMetrics> GetMetricsAsync()

if (this.heartbeat != null)
{
metrics.PartitionCount = heartbeat.PartitionCount;
metrics.ControlQueueLengths = JsonConvert.SerializeObject(heartbeat.ControlQueueLengths);
metrics.ControlQueueLatencies = JsonConvert.SerializeObject(heartbeat.ControlQueueLatencies);
metrics.WorkItemQueueLength = heartbeat.WorkItemQueueLength;
if (heartbeat.WorkItemQueueLatency > TimeSpan.Zero)
metrics.PartitionCount = this.heartbeat.PartitionCount;
metrics.ControlQueueLengths = JsonConvert.SerializeObject(this.heartbeat.ControlQueueLengths);
metrics.ControlQueueLatencies = JsonConvert.SerializeObject(this.heartbeat.ControlQueueLatencies);
metrics.WorkItemQueueLength = this.heartbeat.WorkItemQueueLength;
if (this.heartbeat.WorkItemQueueLatency > TimeSpan.Zero)
{
metrics.WorkItemQueueLatency = heartbeat.WorkItemQueueLatency.ToString();
metrics.WorkItemQueueLatency = this.heartbeat.WorkItemQueueLatency.ToString();
}
}

Expand Down

0 comments on commit be208ed

Please sign in to comment.