Skip to content

Commit

Permalink
Fix typos:
Browse files Browse the repository at this point in the history
getAuxServerTransportSupplierList -> getAuxServerTransportList
aux.transport.type -> aux.transport.types

Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Dec 17, 2024
1 parent 3ac47a6 commit e0753f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public Supplier<HttpServerTransport> 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<NetworkPlugin.AuxTransport> getAuxServerTransportSupplierList() {
public List<NetworkPlugin.AuxTransport> getAuxServerTransportList() {
List<NetworkPlugin.AuxTransport> serverTransportSuppliers = new ArrayList<>();

for (String transportType : AUX_TRANSPORT_TYPES_SETTING.get(settings)) {
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/org/opensearch/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,7 @@ protected HttpServerTransport newHttpTransport(NetworkModule networkModule) {
}

protected List<NetworkPlugin.AuxTransport> newAuxTransports(NetworkModule networkModule) {
return networkModule.getAuxServerTransportSupplierList();
return networkModule.getAuxServerTransportList();
}

private static class LocalNodeFactory implements Function<BoundTransportAddress, DiscoveryNode> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<PortsRange> AUX_TRANSPORT_PORTS = affixKeySetting(
AUX_SETTINGS_PREFIX,
Expand Down

0 comments on commit e0753f9

Please sign in to comment.