Skip to content

Commit

Permalink
Merge pull request planetarium#72 from longfin/feature/libplanet-0.7.…
Browse files Browse the repository at this point in the history
…0-nightly-20191022

Bump libplanet to 0.7.0-nightly.20191022
  • Loading branch information
longfin committed Oct 23, 2019
2 parents dfaa30b + a977211 commit aedfb1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Libplanet.Explorer.Executable/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Bencodex.Types;
Expand Down Expand Up @@ -69,8 +67,6 @@ public static void Main(string[] args)
blockChain,
new PrivateKey(),
1,
millisecondsDialTimeout: 1000 * 15,
millisecondsLinger: 1000 * 1,
iceServers: new[] { options.IceServer }
);
}
Expand Down Expand Up @@ -122,6 +118,7 @@ public static void Main(string[] args)
var trustedPeers = ImmutableHashSet<Address>.Empty;
Console.Error.WriteLine("Starts preloading.");
await swarm.PreloadAsync(
dialTimeout: TimeSpan.FromSeconds(15),
trustedStateValidators: trustedPeers,
cancellationToken: cts.Token
);
Expand All @@ -140,7 +137,7 @@ public static void Main(string[] args)
{
if (swarm is Swarm<AppAgnosticAction>)
{
Task.WaitAll(swarm.StopAsync());
Task.WaitAll(swarm.StopAsync(waitFor: TimeSpan.FromSeconds(1)));
NetMQConfig.Cleanup(false);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Explorer/Libplanet.Explorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</IncludeAssets>
</PackageReference>
<PackageReference Include="GraphQL" Version="2.4.0" />
<PackageReference Include="Libplanet" Version="0.7.0-nightly.20191015" />
<PackageReference Include="Libplanet" Version="0.7.0-nightly.20191022" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.2.3" AllowExplicitVersion="true" />
</ItemGroup>

Expand Down

0 comments on commit aedfb1a

Please sign in to comment.