Skip to content

Commit

Permalink
return count on latency reset call (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
vazois authored May 23, 2024
1 parent ce7ff5d commit 46ad420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/server/Metrics/Latency/RespLatencyCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ private bool ProcessLatencyCommands(ReadOnlySpan<byte> bufSpan, int count)
foreach (var e in events)
storeWrapper.monitor.resetLatencyMetrics[e] = true;
}
while (!RespWriteUtils.WriteDirect(CmdStrings.RESP_OK, ref dcurr, dend))

while (!RespWriteUtils.WriteInteger(events.Count, ref dcurr, dend))
SendAndReset();
}

Expand Down

0 comments on commit 46ad420

Please sign in to comment.