Skip to content

Commit

Permalink
Remove main action service.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed Dec 9, 2024
1 parent 6de6037 commit 62d4522
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 120 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.opensearch.script.ScriptService;
import org.opensearch.telemetry.tracing.Tracer;
import org.opensearch.threadpool.ThreadPool;
import org.opensearch.transport.grpc.actions.MainActionService;
import org.opensearch.watcher.ResourceWatcherService;

import java.util.Collection;
Expand All @@ -40,8 +39,6 @@
import java.util.function.Function;
import java.util.function.Supplier;

import io.grpc.BindableService;

import static java.util.Collections.emptyList;
import static org.opensearch.common.settings.Setting.intSetting;
import static org.opensearch.common.settings.Setting.listSetting;
Expand Down Expand Up @@ -99,8 +96,7 @@ public Collection<Object> createComponents(
if (FeatureFlags.isEnabled(FeatureFlags.GRPC_ENABLE_SETTING) == false) {
throw new IllegalArgumentException("transport-grpc is experimental and feature flag must be enabled before use");
}
final List<BindableService> services = List.of(new MainActionService(client));
this.transport = new Netty4GrpcServerTransport(clusterService.getSettings(), services);
this.transport = new Netty4GrpcServerTransport(clusterService.getSettings(), Collections.emptyList());

// The server will manage the lifecycle of any instance of LifecycleComponent that is returned here
return List.of(transport);
Expand Down

This file was deleted.

30 changes: 0 additions & 30 deletions plugins/transport-grpc/src/main/proto/opensearch/main_action.proto

This file was deleted.

0 comments on commit 62d4522

Please sign in to comment.