More merge fallout.

This commit is contained in:
Joshua Yanovski
2023-03-29 02:27:39 -07:00
parent 37c41c449f
commit 256a58ccd3
2 changed files with 3 additions and 2 deletions

View File

@ -144,6 +144,7 @@ fn main() {
let runtime = tokio::runtime::Builder::new_current_thread() let runtime = tokio::runtime::Builder::new_current_thread()
.max_blocking_threads(1) .max_blocking_threads(1)
.enable_io()
.enable_time() .enable_time()
.build() .build()
.expect("Failed to create tokio runtime."); .expect("Failed to create tokio runtime.");
@ -183,7 +184,7 @@ fn main() {
#[cfg(feature = "discord")] #[cfg(feature = "discord")]
let discord = if settings.networking.enable_discord_integration { let discord = if settings.networking.enable_discord_integration {
veloren_voxygen::discord::Discord::start(&tokio_runtime) veloren_voxygen::discord::Discord::start(&runtime)
} else { } else {
veloren_voxygen::discord::Discord::Inactive veloren_voxygen::discord::Discord::Inactive
}; };

View File

@ -714,7 +714,7 @@ impl SettingsChange {
settings.networking.enable_discord_integration = enabled; settings.networking.enable_discord_integration = enabled;
if enabled { if enabled {
global_state.discord = Discord::start(&global_state.tokio_runtime); global_state.discord = Discord::start(&global_state.runtime);
#[cfg(feature = "singleplayer")] #[cfg(feature = "singleplayer")]
let singleplayer = global_state.singleplayer.is_some(); let singleplayer = global_state.singleplayer.is_some();