Skip to content

Commit

Permalink
solving sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
asoto-iov committed Jan 31, 2024
1 parent 76fa4d4 commit 666a418
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rskj-core/src/main/java/co/rsk/RskContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,11 @@ List<String> getInitialBootNodes() {
if (rskSystemProperties.usePeersFromLastSession()) {
List<String> peerLastSession = rskSystemProperties.peerLastSession();
logger.debug("Loading peers from previous session: {}",peerLastSession);
peerLastSession.stream().filter(peer -> !initialBootNodes.contains(peer)).forEach(initialBootNodes::add);
for(String peer: peerLastSession) {
if (!initialBootNodes.contains(peer)) {
initialBootNodes.add(peer);
}
}
}
return initialBootNodes;
}
Expand Down

0 comments on commit 666a418

Please sign in to comment.