Skip to content

Commit e0d7a72

Browse files
committed
words
1 parent e0424b2 commit e0d7a72

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/StackExchange.Redis/ResultProcessor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,11 +2892,11 @@ public override bool SetResult(PhysicalConnection connection, Message message, i
28922892
}
28932893
}
28942894

2895-
// We need to SetResult before OnFullyEstablished so that the
2896-
// protocol is reliably known *before* we do next-steps.
28972895
if (connection.Protocol is null)
28982896
{
2899-
// if we didn't get a valid response from HELLO, then we have to assume RESP2 at some point
2897+
// If we didn't get a valid response from HELLO, then we have to assume RESP2 at some point.
2898+
// We need the protocol assigned before OnFullyEstablished so that the
2899+
// protocol is reliably known *before* we do next-steps.
29002900
connection.SetProtocol(RedisProtocol.Resp2);
29012901
}
29022902

0 commit comments

Comments
 (0)