From b21137a767276f43a004736ff06ec1538680c8e9 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Wed, 25 Aug 2021 16:49:37 +0200 Subject: [PATCH] Renamed a method. --- .../main/java/nl/andrewl/concord_server/ConcordServer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/nl/andrewl/concord_server/ConcordServer.java b/server/src/main/java/nl/andrewl/concord_server/ConcordServer.java index 05bef83..3958e38 100644 --- a/server/src/main/java/nl/andrewl/concord_server/ConcordServer.java +++ b/server/src/main/java/nl/andrewl/concord_server/ConcordServer.java @@ -1,7 +1,6 @@ package nl.andrewl.concord_server; import lombok.Getter; -import lombok.extern.java.Log; import nl.andrewl.concord_core.msg.types.Identification; import nl.andrewl.concord_core.msg.types.ServerMetaData; import nl.andrewl.concord_core.msg.types.ServerWelcome; @@ -61,10 +60,10 @@ public class ConcordServer implements Runnable { this.db.getCollection("channel-" + channelConfig.id()) )); } - this.initDatabase(); + this.updateDatabase(); } - private void initDatabase() { + private void updateDatabase() { for (var channel : this.channelManager.getChannels()) { var col = channel.getMessageCollection(); if (!col.hasIndex("timestamp")) {