Skip to content

Commit

Permalink
removed simplepositioner
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Apr 23, 2024
1 parent 44ea73f commit bdaa067
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/main/java/telraam/App.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -143,7 +140,6 @@ public void run(AppConfiguration configuration, Environment environment) {
// Set up positioners
Set<Positioner> positioners = new HashSet<>();

// positioners.add(new SimplePositioner(this.database));
positioners.add(new Nostradamus(this.database));

// Start fetch thread for each station
Expand Down

0 comments on commit bdaa067

Please sign in to comment.