BAEL-19928: Further minor improvements

This commit is contained in:
Krzysztof Woyke
2019-12-19 08:28:26 +01:00
parent 898ee40acb
commit b808edd14e
3 changed files with 2 additions and 7 deletions

View File

@@ -2,7 +2,6 @@ package com.baeldung;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import reactor.Environment;
import reactor.bus.EventBus;
@@ -10,13 +9,12 @@ import reactor.bus.EventBus;
public class Config {
@Bean
Environment env() {
public Environment env() {
return Environment.initializeIfEmpty().assignErrorJournal();
}
@Bean
EventBus createEventBus(Environment env) {
public EventBus createEventBus(Environment env) {
return EventBus.create(env, Environment.THREAD_POOL);
}
}