Skip to content

Commit f647311

Browse files
fix: allow latency of 'unknown'
Issue #19
1 parent 48a3c42 commit f647311

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CoreApi/SwarmApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ internal SwarmApi(IpfsClient ipfs)
100100

101101
TimeSpan ParseLatency(string latency)
102102
{
103-
if (latency == "n/a")
103+
if (latency == "n/a" || latency == "unknown")
104104
{
105105
return TimeSpan.Zero;
106106
}

src/IpfsApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</PropertyGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Ipfs.Core" Version="0.8.3" />
31+
<PackageReference Include="Ipfs.Core" Version="0.10.0" />
3232
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
3333
<PackageReference Include="System.Net.Http" Version="4.3.3" Condition="'$(TargetFramework)' == 'netstandard14'" />
3434
<PackageReference Include="System.Net.Http" Version="4.3.3" Condition="'$(TargetFramework)' == 'net45'" />

0 commit comments

Comments
 (0)