diff --git a/.gitignore b/.gitignore
index 934c7d6..eb3f7ab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@ target/
!**/src/test/**/target/
### IntelliJ IDEA ###
+.idea/
**/.idea/
.idea/modules.xml
.idea/jarRepositories.xml
@@ -36,4 +37,5 @@ build/
.vscode/
### Mac OS ###
-.DS_Store
\ No newline at end of file
+.DS_Store
+/.idea/
diff --git a/SymphonyManager/src/main/java/io/github/lumijiez/Main.java b/SymphonyManager/src/main/java/io/github/lumijiez/Main.java
index 6d2c214..c634d85 100644
--- a/SymphonyManager/src/main/java/io/github/lumijiez/Main.java
+++ b/SymphonyManager/src/main/java/io/github/lumijiez/Main.java
@@ -1,17 +1,7 @@
package io.github.lumijiez;
-//TIP To Run code, press or
-// click the icon in the gutter.
public class Main {
public static void main(String[] args) {
- //TIP Press with your caret at the highlighted text
- // to see how IntelliJ IDEA suggests fixing it.
- System.out.printf("Hello and welcome!");
-
- for (int i = 1; i <= 5; i++) {
- //TIP Press to start debugging your code. We have set one breakpoint
- // for you, but you can always add more by pressing .
- System.out.println("i = " + i);
- }
+ System.out.print("Manager started!");
}
}
\ No newline at end of file
diff --git a/SymphonyProducer/src/main/java/io/github/lumijiez/Main.java b/SymphonyProducer/src/main/java/io/github/lumijiez/Main.java
index 92d3f1a..eecb332 100644
--- a/SymphonyProducer/src/main/java/io/github/lumijiez/Main.java
+++ b/SymphonyProducer/src/main/java/io/github/lumijiez/Main.java
@@ -61,12 +61,8 @@ public class Main {
System.err.println("Failed to connect to RabbitMQ: " + e.getMessage());
System.err.println("Retrying in 5 seconds...");
try {
- if (connection != null && connection.isOpen()) {
- connection.close();
- }
- if (channel != null && channel.isOpen()) {
- channel.close();
- }
+ if (connection != null && connection.isOpen()) connection.close();
+ if (channel != null && channel.isOpen()) channel.close();
} catch (IOException | TimeoutException ignored) {
}