Skip to content

Commit a9305cd

Browse files
committed
merge eyeball feedback
1 parent 0f10d8d commit a9305cd

3 files changed

Lines changed: 194 additions & 100 deletions

File tree

src/StackExchange.Redis/ClientInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private sealed class ClientInfoProcessor : ResultProcessor<ClientInfo[]>
292292
{
293293
protected override bool SetResultCore(PhysicalConnection connection, Message message, ref RespReader reader)
294294
{
295-
if (reader.Prefix == RespPrefix.BulkString)
295+
if (reader.IsScalar)
296296
{
297297
var raw = reader.ReadString();
298298
if (TryParse(raw, out var clients))

src/StackExchange.Redis/ResultProcessor.Literals.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,39 @@ [FastHash] internal static partial class sync { }
4848
[FastHash] internal static partial class connected { }
4949
[FastHash] internal static partial class none { }
5050
[FastHash] internal static partial class handshake { }
51+
52+
// Result processor literals
53+
[FastHash]
54+
internal static partial class OK
55+
{
56+
public static readonly FastHash Hash = new(U8);
57+
}
58+
59+
[FastHash]
60+
internal static partial class PONG
61+
{
62+
public static readonly FastHash Hash = new(U8);
63+
}
64+
65+
[FastHash("Background saving started")]
66+
internal static partial class background_saving_started
67+
{
68+
public static readonly FastHash Hash = new(U8);
69+
}
70+
71+
[FastHash("Background append only file rewriting started")]
72+
internal static partial class background_aof_rewriting_started
73+
{
74+
public static readonly FastHash Hash = new(U8);
75+
}
76+
77+
// LCS processor literals
78+
[FastHash] internal static partial class matches { }
79+
[FastHash] internal static partial class len { }
80+
81+
// Sentinel processor literals
82+
[FastHash] internal static partial class ip { }
83+
[FastHash] internal static partial class port { }
5184
// ReSharper restore InconsistentNaming
5285
#pragma warning restore CS8981, SA1300, SA1134 // forgive naming etc
5386
}

0 commit comments

Comments
 (0)