Skip to content

Commit d8d999c

Browse files
author
Alex Peck
committed
correct version
1 parent f165667 commit d8d999c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BitFaster.Caching.UnitTests/Lfu/ConcurrentLfuBuilderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public class ConcurrentLfuBuilderTests
1212
[Fact]
1313
public void TestConcurrencyLevel()
1414
{
15-
// on .net9, -1 indicates the default concurrency level
15+
// Note that on .net8+, -1 indicates the default concurrency level
1616
var b = new ConcurrentLfuBuilder<int, int>()
17-
.WithConcurrencyLevel(-2);
17+
.WithConcurrencyLevel(0);
1818

1919
Action constructor = () => { var x = b.Build(); };
2020

BitFaster.Caching/Lru/Defaults.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace BitFaster.Caching.Lru
44
{
55
internal static class Defaults
66
{
7-
#if NET9_0_OR_GREATER
7+
#if NET8_0_OR_GREATER
88
public static int ConcurrencyLevel => -1;
99
#else
1010
public static int ConcurrencyLevel => Environment.ProcessorCount;

0 commit comments

Comments
 (0)