From 847eb30d1f2154b2158680b4fde4c24ad9ff27a6 Mon Sep 17 00:00:00 2001 From: James Munson Date: Tue, 25 Jun 2019 21:19:21 -0700 Subject: [PATCH] Removed useless mongo db Signed-off-by: James Munson --- http-service/pom.xml | 5 ----- .../runelite/http/service/SpringBootWebApplication.java | 8 -------- http-service/src/main/resources/application.yaml | 2 -- 3 files changed, 15 deletions(-) diff --git a/http-service/pom.xml b/http-service/pom.xml index b47299f9b2..3a532c422f 100644 --- a/http-service/pom.xml +++ b/http-service/pom.xml @@ -122,11 +122,6 @@ - - org.mongodb - mongodb-driver-sync - 3.10.1 - org.springframework.boot diff --git a/http-service/src/main/java/net/runelite/http/service/SpringBootWebApplication.java b/http-service/src/main/java/net/runelite/http/service/SpringBootWebApplication.java index 17a5a5041b..2dfc2ac1bf 100644 --- a/http-service/src/main/java/net/runelite/http/service/SpringBootWebApplication.java +++ b/http-service/src/main/java/net/runelite/http/service/SpringBootWebApplication.java @@ -26,8 +26,6 @@ package net.runelite.http.service; import ch.qos.logback.classic.LoggerContext; import com.google.common.base.Strings; -import com.mongodb.client.MongoClient; -import com.mongodb.client.MongoClients; import java.io.IOException; import java.time.Instant; import java.util.HashMap; @@ -159,12 +157,6 @@ public class SpringBootWebApplication extends SpringBootServletInitializer return createSql2oFromDataSource(dataSource); } - @Bean - public MongoClient mongoClient(@Value("${mongo.host}") String host) - { - return MongoClients.create(host); - } - private static DataSource getDataSource(DataSourceProperties dataSourceProperties) { if (!Strings.isNullOrEmpty(dataSourceProperties.getJndiName())) diff --git a/http-service/src/main/resources/application.yaml b/http-service/src/main/resources/application.yaml index 9905e61695..06b5933704 100644 --- a/http-service/src/main/resources/application.yaml +++ b/http-service/src/main/resources/application.yaml @@ -30,8 +30,6 @@ redis: pool.size: 10 host: http://localhost:6379 -mongo: - host: mongodb://localhost:27017 # Twitter client for feed runelite: