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 f80ae9c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 100 deletions.
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 @@ -42,6 +41,7 @@

import io.grpc.BindableService;

import static java.util.Collections.EMPTY_LIST;
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 +99,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 f80ae9c

Please sign in to comment.