Skip to content

Commit 6c008fc

Browse files
authored
struct (#267)
* col * struct
1 parent 6247806 commit 6c008fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BitFaster.Caching/Lfu/ConcurrentLfu.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,9 @@ private LfuNode<K, V> EvictFromWindow()
615615
return first;
616616
}
617617

618-
private struct EvictIterator
618+
private ref struct EvictIterator
619619
{
620-
private CmSketch<K, DetectAvx2> sketch;
620+
private readonly CmSketch<K, DetectAvx2> sketch;
621621
public LfuNode<K, V> node;
622622
public int freq;
623623

0 commit comments

Comments
 (0)