This is an automated email from the ASF dual-hosted git repository.
jlli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 6d8ea75 Remove host from swagger setting (#5983)
6d8ea75 is described below
commit 6d8ea7500114333fe6ccbe6b1d7dc712e0fe7b2b
Author: Jialiang Li <[email protected]>
AuthorDate: Fri Sep 4 10:46:10 2020 -0700
Remove host from swagger setting (#5983)
Co-authored-by: Jack Li(Analytics Engineering) <[email protected]>
---
.../apache/pinot/controller/api/ControllerAdminApiApplication.java | 7 -------
1 file changed, 7 deletions(-)
diff --git
a/pinot-controller/src/main/java/org/apache/pinot/controller/api/ControllerAdminApiApplication.java
b/pinot-controller/src/main/java/org/apache/pinot/controller/api/ControllerAdminApiApplication.java
index ed77afe..5c2c8e3 100644
---
a/pinot-controller/src/main/java/org/apache/pinot/controller/api/ControllerAdminApiApplication.java
+++
b/pinot-controller/src/main/java/org/apache/pinot/controller/api/ControllerAdminApiApplication.java
@@ -153,13 +153,6 @@ public class ControllerAdminApiApplication extends
ResourceConfig {
beanConfig.setResourcePackage(RESOURCE_PACKAGE);
beanConfig.setScan(true);
- Collection<NetworkListener> listeners = httpServer.getListeners();
- if (listeners.size() > 0) {
- // fetch the port from the first listener which uses http
- int port = listeners.iterator().next().getPort();
- beanConfig.setHost("localhost:" + port);
- }
-
ClassLoader loader = this.getClass().getClassLoader();
CLStaticHttpHandler apiStaticHttpHandler = new CLStaticHttpHandler(loader,
"/api/");
// map both /api and /help to swagger docs. /api because it looks nice.
/help for backward compatibility
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]