radixdlt / olympia-node

Radix monorepo
Other
142 stars 35 forks source link

Get peer's remoteAddress in channelActive #537

Closed LukasGasior1 closed 2 years ago

LukasGasior1 commented 2 years ago

socketChannel.remoteAddress() might not always be available in the channel initializer. If it wasn't, we'll now try to get it in the channelActive callback. This PR also removes unnecessary throws clause.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

88.9% 88.9% Coverage
0.0% 0.0% Duplication