Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
TalZaccai committed Feb 18, 2025
1 parent a729bf2 commit 9cbe7f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/cluster/Server/ClusterProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public MetricsItem[] GetReplicationInfo()
if (!serverOptions.EnableCluster)
{
return (replicationManager.ReplicationOffset, default);
};
}

return (replicationManager.ReplicationOffset, replicationManager.GetReplicaInfo());
}
Expand Down
2 changes: 1 addition & 1 deletion libs/common/HashSlotUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static unsafe ushort HashSlot(byte* keyPtr, int ksize)
var end = keyPtr + ksize;

// Find first occurence of '{'
while (startPtr < end && *startPtr != '{') { startPtr++; };
while (startPtr < end && *startPtr != '{') { startPtr++; }

// Return early if did not find '{'
if (startPtr == end) return (ushort)(Hash(keyPtr, ksize) & 16383);
Expand Down

0 comments on commit 9cbe7f5

Please sign in to comment.