We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b56c7d commit 18b868eCopy full SHA for 18b868e
1 file changed
src/StackExchange.Redis/ServerEndPoint.cs
@@ -180,7 +180,7 @@ internal Exception? LastException
180
internal State InteractiveConnectionState => interactive?.ConnectionState ?? State.Disconnected;
181
internal State SubscriptionConnectionState => KnowOrAssumeResp3() ? InteractiveConnectionState : subscription?.ConnectionState ?? State.Disconnected;
182
183
- public long OperationCount => interactive?.OperationCount ?? 0 + subscription?.OperationCount ?? 0;
+ public long OperationCount => (interactive?.OperationCount ?? 0) + (subscription?.OperationCount ?? 0);
184
185
public bool RequiresReadMode => serverType == ServerType.Cluster && IsReplica;
186
0 commit comments