File tree 2 files changed +14
-8
lines changed
vanilla/src/main/java/gg/beemo/vanilla
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
public class Config {
4
4
5
- public static String [] KAFKA_HOST = new String []{"localhost:9092 " };
5
+ public static String [] RABBIT_HOST = new String []{"localhost:5672 " };
6
6
7
- public static boolean KAFKA_USE_TLS = false ;
7
+ public static boolean RABBIT_USE_TLS = false ;
8
+
9
+ public static String RABBIT_USERNAME = "guest" ;
10
+
11
+ public static String RABBIT_PASSWORD = "guest" ;
8
12
9
13
}
Original file line number Diff line number Diff line change 1
1
package gg.beemo.vanilla
2
2
3
3
import gg.beemo.latte.CommonConfig
4
- import gg.beemo.latte.broker.kafka.KafkaConnection
4
+ import gg.beemo.latte.broker.rabbitmq.RabbitConnection
5
5
import gg.beemo.latte.config.Configurator
6
6
import gg.beemo.latte.logging.Log
7
7
import gg.beemo.latte.logging.log
@@ -19,11 +19,13 @@ object Vanilla {
19
19
Configurator .create().mirror(Config ::class .java)
20
20
21
21
log.debug(" Initializing Kafka connection" )
22
- val brokerConnection = KafkaConnection (
23
- Config .KAFKA_HOST ,
24
- CommonConfig .BrokerServices .VANILLA ,
25
- " 0" , // There will only ever be one instance of vanilla
26
- Config .KAFKA_USE_TLS ,
22
+ val brokerConnection = RabbitConnection (
23
+ rabbitHosts = Config .RABBIT_HOST ,
24
+ serviceName = CommonConfig .BrokerServices .VANILLA ,
25
+ instanceId = " 0" , // There will only ever be one instance of vanilla
26
+ useTls = Config .RABBIT_USE_TLS ,
27
+ username = Config .RABBIT_USERNAME ,
28
+ password = Config .RABBIT_PASSWORD ,
27
29
)
28
30
29
31
log.debug(" Initializing Kafka Ratelimit client" )
You can’t perform that action at this time.
0 commit comments