From e0753f99a8f88d3dee52d71fc48fc58c469d6d85 Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Tue, 17 Dec 2024 11:42:11 -0800 Subject: [PATCH] Fix typos: getAuxServerTransportSupplierList -> getAuxServerTransportList aux.transport.type -> aux.transport.types Signed-off-by: Finn Carroll --- .../main/java/org/opensearch/common/network/NetworkModule.java | 2 +- server/src/main/java/org/opensearch/node/Node.java | 2 +- server/src/main/java/org/opensearch/plugins/NetworkPlugin.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/org/opensearch/common/network/NetworkModule.java b/server/src/main/java/org/opensearch/common/network/NetworkModule.java index f63c5b508b357..5d55fb52c323d 100644 --- a/server/src/main/java/org/opensearch/common/network/NetworkModule.java +++ b/server/src/main/java/org/opensearch/common/network/NetworkModule.java @@ -374,7 +374,7 @@ public Supplier getHttpServerTransportSupplier() { * Multiple transport types can be registered and enabled via AUX_TRANSPORT_TYPES_SETTING. * An IllegalStateException is thrown if a transport type is enabled not registered. */ - public List getAuxServerTransportSupplierList() { + public List getAuxServerTransportList() { List serverTransportSuppliers = new ArrayList<>(); for (String transportType : AUX_TRANSPORT_TYPES_SETTING.get(settings)) { diff --git a/server/src/main/java/org/opensearch/node/Node.java b/server/src/main/java/org/opensearch/node/Node.java index 88895e15f5d12..704a23890b07a 100644 --- a/server/src/main/java/org/opensearch/node/Node.java +++ b/server/src/main/java/org/opensearch/node/Node.java @@ -2117,7 +2117,7 @@ protected HttpServerTransport newHttpTransport(NetworkModule networkModule) { } protected List newAuxTransports(NetworkModule networkModule) { - return networkModule.getAuxServerTransportSupplierList(); + return networkModule.getAuxServerTransportList(); } private static class LocalNodeFactory implements Function { diff --git a/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java b/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java index e1a0ad8f71025..516aa94534f94 100644 --- a/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java +++ b/server/src/main/java/org/opensearch/plugins/NetworkPlugin.java @@ -77,7 +77,7 @@ public interface NetworkPlugin { */ abstract class AuxTransport extends AbstractLifecycleComponent { public static final String AUX_SETTINGS_PREFIX = "aux.transport."; - public static final String AUX_TRANSPORT_TYPES_KEY = AUX_SETTINGS_PREFIX + "type"; + public static final String AUX_TRANSPORT_TYPES_KEY = AUX_SETTINGS_PREFIX + "types"; public static final String AUX_PORT_DEFAULTS = "9400-9500"; public static final Setting.AffixSetting AUX_TRANSPORT_PORTS = affixKeySetting( AUX_SETTINGS_PREFIX,