Reply To: AbstractChordNode returning the wrong neighbors

Home Forums PeerfactSim Forum AbstractChordNode returning the wrong neighbors Reply To: AbstractChordNode returning the wrong neighbors

#956
Thim Strothmann
Guest

For everybody who has the same problem as Dennis (not everybody should
run into this problem), here the work-around, just replace the method
Dennis mentioned with the following one:

public INeighborDeterminator getNeighbors() {
return new INeighborDeterminator() {

@Override
public Collection<OverlayContact> getNeighbors() {
if (getChordRoutingTable() == null)
return Collections.emptySet();
return getChordRoutingTable().getNeighbors();
}
};

Comments are closed.