Skip to content

Commit 20fa258

Browse files
committed
line endings oddity
1 parent 633a91b commit 20fa258

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

StackExchange.Redis/StackExchange/Redis/ServerSelectionStrategy.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ public ServerSelectionStrategy(ConnectionMultiplexer multiplexer)
5454
this.multiplexer = multiplexer;
5555
}
5656

57-
public ServerType ServerType { get; set; } = ServerType.Standalone;
58-
internal int TotalSlots => RedisClusterSlotCount;
59-
57+
public ServerType ServerType { get; set; } = ServerType.Standalone;
58+
internal int TotalSlots => RedisClusterSlotCount;
59+
6060
/// <summary>
6161
/// Computes the hash-slot that would be used by the given key
62-
/// </summary>
62+
/// </summary>
6363
/// <param name="key">The <see cref="RedisKey"/> to determine a slot ID for.</param>
6464
public unsafe int HashSlot(RedisKey key)
6565
{
@@ -131,13 +131,13 @@ public bool TryResend(int hashSlot, Message message, EndPoint endpoint, bool isM
131131
var command = message.Command;
132132
switch (Message.GetMasterSlaveFlags(message.Flags))
133133
{
134-
case CommandFlags.DemandMaster:
134+
case CommandFlags.DemandMaster:
135135
resendVia = server.IsSelectable(command) ? server : null;
136136
break;
137-
case CommandFlags.PreferMaster:
137+
case CommandFlags.PreferMaster:
138138
resendVia = server.IsSelectable(command) ? server : FindSlave(server, command);
139139
break;
140-
case CommandFlags.PreferSlave:
140+
case CommandFlags.PreferSlave:
141141
resendVia = FindSlave(server, command) ?? (server.IsSelectable(command) ? server : null);
142142
break;
143143
case CommandFlags.DemandSlave:
@@ -149,7 +149,7 @@ public bool TryResend(int hashSlot, Message message, EndPoint endpoint, bool isM
149149
multiplexer.Trace("Unable to resend to " + endpoint);
150150
}
151151
else
152-
{
152+
{
153153
message.PrepareToResend(resendVia, isMoved);
154154
retry = resendVia.TryEnqueue(message);
155155
}
@@ -182,7 +182,7 @@ internal int CombineSlot(int oldSlot, int newSlot)
182182
if (oldSlot == NoSlot) return newSlot;
183183
return oldSlot == newSlot ? oldSlot : MultipleSlots;
184184
}
185-
185+
186186
internal int CombineSlot(int oldSlot, RedisKey key)
187187
{
188188
if (oldSlot == MultipleSlots || key.IsNull) return oldSlot;
@@ -191,7 +191,7 @@ internal int CombineSlot(int oldSlot, RedisKey key)
191191
if (oldSlot == NoSlot) return newSlot;
192192
return oldSlot == newSlot ? oldSlot : MultipleSlots;
193193
}
194-
194+
195195
internal int CountCoveredSlots()
196196
{
197197
var arr = map;

0 commit comments

Comments
 (0)