a0894e7321d1f65cf30d1d3045a64593654244c7
- SyncAsync: remove redundant FlushAsync, use single Flush(flushToDisk:true) - ComputeCrc: use incremental Crc32.Append to avoid contiguous buffer heap allocation - Load: cast pos+length to long to guard against int overflow in bounds check - AppendAsync: delegate to WriteEntryTo (DRY — eliminates duplicated record-building logic) - Load: extract ParseEntries static helper to eliminate goto pattern with early returns - Entries: change return type from IEnumerable to IReadOnlyList for index access and Count property - RaftNode.PersistAsync: remove redundant term.txt write (meta.json now owns term+votedFor) - RaftWalTests: tighten ShouldBeGreaterThanOrEqualTo(1) -> ShouldBe(1) in truncation/CRC tests; use .Count property directly on IReadOnlyList instead of .Count() LINQ extension
Description
No description provided
Languages
C#
99.9%