From bdaa067d4c710c1d1e77207a2d7b760c607961fd Mon Sep 17 00:00:00 2001 From: Topvennie Date: Tue, 23 Apr 2024 15:29:36 +0200 Subject: [PATCH] removed simplepositioner --- src/main/java/telraam/App.java | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/main/java/telraam/App.java b/src/main/java/telraam/App.java index 0d79b23..4f4348c 100644 --- a/src/main/java/telraam/App.java +++ b/src/main/java/telraam/App.java @@ -1,11 +1,11 @@ package telraam; import io.dropwizard.core.Application; +import io.dropwizard.core.setup.Bootstrap; +import io.dropwizard.core.setup.Environment; import io.dropwizard.jdbi3.JdbiFactory; import io.dropwizard.jdbi3.bundles.JdbiExceptionsBundle; import io.dropwizard.jersey.setup.JerseyEnvironment; -import io.dropwizard.core.setup.Bootstrap; -import io.dropwizard.core.setup.Environment; import io.federecio.dropwizard.swagger.SwaggerBundle; import io.federecio.dropwizard.swagger.SwaggerBundleConfiguration; import jakarta.servlet.DispatcherType; @@ -25,13 +25,10 @@ import telraam.logic.lapper.slapper.Slapper; import telraam.logic.positioner.Positioner; import telraam.logic.positioner.nostradamus.Nostradamus; -import telraam.logic.positioner.simple.SimplePositioner; import telraam.station.FetcherFactory; -import telraam.station.websocket.WebsocketFetcher; import telraam.util.AcceptedLapsUtil; import telraam.websocket.WebSocketConnection; -import java.io.IOException; import java.util.EnumSet; import java.util.HashSet; import java.util.Set; @@ -93,11 +90,11 @@ public void run(AppConfiguration configuration, Environment environment) { // Register websocket endpoint JettyWebSocketServletContainerInitializer.configure( - environment.getApplicationContext(), - (servletContext, wsContainer) -> { - wsContainer.setMaxTextMessageSize(65535); - wsContainer.addMapping("/ws", (req, res) -> new WebSocketConnection()); - } + environment.getApplicationContext(), + (servletContext, wsContainer) -> { + wsContainer.setMaxTextMessageSize(65535); + wsContainer.addMapping("/ws", (req, res) -> new WebSocketConnection()); + } ); // Add api resources @@ -143,7 +140,6 @@ public void run(AppConfiguration configuration, Environment environment) { // Set up positioners Set positioners = new HashSet<>(); -// positioners.add(new SimplePositioner(this.database)); positioners.add(new Nostradamus(this.database)); // Start fetch thread for each station