Skip to content

Commit

Permalink
missing return value
Browse files Browse the repository at this point in the history
  • Loading branch information
theolivenbaum committed Jan 22, 2020
1 parent 6cdcdea commit 63199ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/HNSW.Net/SmallWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public enum NeighbourSelectionHeuristic
/// </summary>
/// <param name="items">The items to connect into the graph.</param>

public void AddItems(IReadOnlyList<TItem> items, IProgressReporter progressReporter = null, CancellationToken cancellationToken = default)
public IReadOnlyList<int> AddItems(IReadOnlyList<TItem> items, IProgressReporter progressReporter = null, CancellationToken cancellationToken = default)
{
LockGraph.EnterWriteLock();
try
{
Graph.AddItems(items, Generator, progressReporter, cancellationToken);
return Graph.AddItems(items, Generator, progressReporter, cancellationToken);
}
finally
{
Expand Down

0 comments on commit 63199ce

Please sign in to comment.