Remove unnecessary hash map copy in o.e.b.Security
This commit removes an unnecessary copying of the tribe node group settings in o.e.b.Security.
This commit is contained in:
parent
a12f09317d
commit
9fb54f4ef8
|
@ -294,8 +294,7 @@ final class Security {
|
|||
}
|
||||
}
|
||||
|
||||
final Map<String, Settings> tribeNodesSettings = new HashMap<>(settings.getGroups("tribe", true));
|
||||
for (final Settings tribeNodeSettings : tribeNodesSettings.values()) {
|
||||
for (final Settings tribeNodeSettings : settings.getGroups("tribe", true).values()) {
|
||||
// tribe nodes have HTTP disabled by default, so we check if HTTP is enabled before granting
|
||||
if (NetworkModule.HTTP_ENABLED.exists(tribeNodeSettings) && NetworkModule.HTTP_ENABLED.get(tribeNodeSettings)) {
|
||||
addSocketPermissionForHttp(policy, tribeNodeSettings);
|
||||
|
|
Loading…
Reference in New Issue