Skip to content

Commit

Permalink
use RespWriteUtils.WriteInteger
Browse files Browse the repository at this point in the history
  • Loading branch information
tisilent committed Mar 31, 2024
1 parent 8b4556b commit 2002294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/server/Resp/AdminCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ private bool ProcessAdminCommands<TGarnetApi>(ReadOnlySpan<byte> command, ReadOn
if (!success) return false;
if (Encoding.ASCII.GetString(param) == "COUNT")
{
while (!RespWriteUtils.WriteDirect(Encoding.ASCII.GetBytes($":{RespInfo.GetCommandsCount()}\r\n"), ref dcurr, dend))
while (!RespWriteUtils.WriteInteger(RespInfo.GetCommandsCount(), ref dcurr, dend))
SendAndReset();
}
else
Expand Down

0 comments on commit 2002294

Please sign in to comment.