Skip to content

Commit

Permalink
fix(IDhtApi): limit FindProvidersAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Nov 2, 2018
1 parent 0b18af5 commit 8111c74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CoreApi/IDhtApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ public interface IDhtApi
/// <param name="id">
/// The <see cref="Cid"/> of the content.
/// </param>
/// <param name="limit">
/// The maximum number of peers to return. Defaults to 20.
/// </param>
/// <param name="cancel">
/// Is used to stop the task. When cancelled, the <see cref="TaskCanceledException"/> is raised.
/// </param>
/// <returns>
/// A sequence of IPFS <see cref="Peer"/>.
/// </returns>
Task<IEnumerable<Peer>> FindProvidersAsync(Cid id, CancellationToken cancel = default(CancellationToken));
Task<IEnumerable<Peer>> FindProvidersAsync(Cid id, int limit = 20, CancellationToken cancel = default(CancellationToken));
}
}

0 comments on commit 8111c74

Please sign in to comment.