Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: mloufra <[email protected]>
  • Loading branch information
mloufra committed Oct 13, 2022
1 parent c654293 commit 0687b8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/opensearch/sdk/ExtensionsRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@ public void startActionListener(int timeout) {
*/
public static void run(Extension extension) throws IOException {
logger.info("Starting extension " + extension.getExtensionSettings().getExtensionName());
@SuppressWarnings("unused")
ExtensionsRunner runner = new ExtensionsRunner(extension);
// initialize the transport service
new NettyTransport(runner).initializeExtensionTransportService(runner.getSettings(), new ThreadPool(runner.getSettings()), runner);
NettyTransport nettyTransport = new NettyTransport(runner);
nettyTransport.initializeExtensionTransportService(runner.getSettings(), new ThreadPool(runner.getSettings()), runner);
runner.startActionListener(0);
}
}
1 change: 0 additions & 1 deletion src/test/java/org/opensearch/sdk/TestNetty4Transport.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
package org.opensearch.sdk;

import java.io.IOException;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.opensearch.common.component.Lifecycle;
Expand Down

0 comments on commit 0687b8f

Please sign in to comment.