fix: наименование групп kafka
This commit is contained in:
@@ -21,8 +21,11 @@ public class MainPlugin extends JavaPlugin {
|
||||
}
|
||||
|
||||
private void initKafkaService() {
|
||||
ClassLoader originalContext = Thread.currentThread().getContextClassLoader();
|
||||
Thread.currentThread().setContextClassLoader(null);
|
||||
//FIXME перенести в конфигурацию
|
||||
service = new KafkaService("127.0.0.1:9092", "global-chat", 1000);
|
||||
Thread.currentThread().setContextClassLoader(originalContext);
|
||||
|
||||
mqThread = new Thread(() -> {
|
||||
while (!Thread.currentThread().isInterrupted()) {
|
||||
|
||||
Reference in New Issue
Block a user