Skip to content

Commit

Permalink
Merge pull request #6 from Cysharp/feature/UpdateTargetFrameworks
Browse files Browse the repository at this point in the history
Update TargetFrameworks (net6.0;net8.0 -> net8.0;net9.0)
  • Loading branch information
mayuki authored Dec 27, 2024
2 parents c8c590d + 0741da5 commit d8ae8ba
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 28 deletions.
6 changes: 0 additions & 6 deletions src/Multicaster.Distributed.Nats/KeyArrayFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ internal static class KeyArrayFormatter<TKey>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Serialize(ref MessagePackWriter writer, ReadOnlySpan<TKey> values)
{
if (values == null)
{
writer.WriteNil();
return;
}

writer.WriteArrayHeader(values.Length);
foreach (var value in values)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
6 changes: 0 additions & 6 deletions src/Multicaster.Distributed.Redis/KeyArrayFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ internal static class KeyArrayFormatter<TKey>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Serialize(ref MessagePackWriter writer, ReadOnlySpan<TKey> values)
{
if (values == null)
{
writer.WriteNil();
return;
}

writer.WriteArrayHeader(values.Length);
foreach (var value in values)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
10 changes: 3 additions & 7 deletions src/Multicaster/Internal/FNV1A32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ public static int GetHashCode(string str)

public static int GetHashCode(ReadOnlySpan<byte> obj)
{
uint hash = 0;
if (obj != null)
uint hash = 2166136261;
for (int i = 0; i < obj.Length; i++)
{
hash = 2166136261;
for (int i = 0; i < obj.Length; i++)
{
hash = unchecked((obj[i] ^ hash) * 16777619);
}
hash = unchecked((obj[i] ^ hash) * 16777619);
}

return unchecked((int)hash);
Expand Down
7 changes: 1 addition & 6 deletions src/Multicaster/Multicaster.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand All @@ -10,11 +10,6 @@
<RootNamespace>Cysharp.Runtime.Multicast</RootNamespace>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
<None Update="Remoting\RemoteProxyBase.Invoke.tt">
<Generator>TextTemplatingFileGenerator</Generator>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void CancelImmediately_On_Register_When_Disposed()
}

[Fact]
public async Task Timeout()
public void Timeout()
{
// Arrange
var timeProvider = new FakeTimeProvider();
Expand Down

0 comments on commit d8ae8ba

Please sign in to comment.