Skip to content

Commit

Permalink
Fix Neighbors constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaderberg committed Dec 29, 2023
1 parent 7e71a75 commit 60e25f5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ final class Neighbors {
private LongAdder joinCounter;

Neighbors(long nodeCount) {
this.neighbors = HugeObjectArray.newArray(NeighborList.class, nodeCount);
this.neighborsFound = new LongAdder();
this.joinCounter = new LongAdder();
this(HugeObjectArray.newArray(NeighborList.class, nodeCount));
}

Neighbors(HugeObjectArray<NeighborList> neighbors) {
this.neighbors = neighbors;
this.neighborsFound = new LongAdder();
this.joinCounter = new LongAdder();
}

NeighborList get(long nodeId) {
Expand Down

0 comments on commit 60e25f5

Please sign in to comment.