Skip to content

Commit

Permalink
feat(Ipfs.Engine): run the peer manager
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Aug 22, 2019
1 parent 9a5fa4d commit ae3564b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/IpfsEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,13 @@ await MigrationManager.MirgrateToVersionAsync(MigrationManager.LatestVersion)
});
await swarm.StartAsync().ConfigureAwait(false);

var peerManager = new PeerManager { Swarm = swarm };
await peerManager.StartAsync().ConfigureAwait(false);
stopTasks.Add(async () =>
{
await peerManager.StopAsync().ConfigureAwait(false);
});

// Start the primary services.
var tasks = new List<Func<Task>>
{
Expand Down

0 comments on commit ae3564b

Please sign in to comment.