Skip to content

Commit 6905fa9

Browse files
authored
Do not set cached hash code from GetConsistentHashCode(int) (#9349)
1 parent 116da42 commit 6905fa9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Orleans.Core.Abstractions/IDs/SiloAddress.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,7 @@ internal int GetConsistentHashCode(int seed)
280280
BinaryPrimitives.WriteInt32LittleEndian(buf[20..], Generation);
281281
BinaryPrimitives.WriteInt32LittleEndian(buf[24..], seed);
282282

283-
hashCode = (int)StableHash.ComputeHash(buf);
284-
hashCodeSet = true;
285-
return hashCode;
283+
return (int)StableHash.ComputeHash(buf);
286284
}
287285

288286
private int CalculateConsistentHashCode()

0 commit comments

Comments
 (0)