mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Review comment
This commit is contained in:
parent
35ebd4d3ed
commit
5c758d2066
@ -73,7 +73,8 @@ public class SystemId {
|
|||||||
return 0;
|
return 0;
|
||||||
}).findFirst();
|
}).findFirst();
|
||||||
|
|
||||||
if (firstInetAddrForInterface.orElse(null).getHostAddress().contains(".")) return firstInetAddrForInterface;
|
if ( firstInetAddrForInterface.isPresent() &&
|
||||||
|
firstInetAddrForInterface.orElse(null).getHostAddress().contains(".")) return firstInetAddrForInterface;
|
||||||
|
|
||||||
Optional<InetAddress> firstIpAddress = ifaces.stream()
|
Optional<InetAddress> firstIpAddress = ifaces.stream()
|
||||||
.flatMap(i4 -> {
|
.flatMap(i4 -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user