mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
More merge fallout.
This commit is contained in:
parent
37c41c449f
commit
256a58ccd3
@ -144,6 +144,7 @@ fn main() {
|
||||
|
||||
let runtime = tokio::runtime::Builder::new_current_thread()
|
||||
.max_blocking_threads(1)
|
||||
.enable_io()
|
||||
.enable_time()
|
||||
.build()
|
||||
.expect("Failed to create tokio runtime.");
|
||||
@ -183,7 +184,7 @@ fn main() {
|
||||
|
||||
#[cfg(feature = "discord")]
|
||||
let discord = if settings.networking.enable_discord_integration {
|
||||
veloren_voxygen::discord::Discord::start(&tokio_runtime)
|
||||
veloren_voxygen::discord::Discord::start(&runtime)
|
||||
} else {
|
||||
veloren_voxygen::discord::Discord::Inactive
|
||||
};
|
||||
|
@ -714,7 +714,7 @@ impl SettingsChange {
|
||||
|
||||
settings.networking.enable_discord_integration = enabled;
|
||||
if enabled {
|
||||
global_state.discord = Discord::start(&global_state.tokio_runtime);
|
||||
global_state.discord = Discord::start(&global_state.runtime);
|
||||
|
||||
#[cfg(feature = "singleplayer")]
|
||||
let singleplayer = global_state.singleplayer.is_some();
|
||||
|
Loading…
Reference in New Issue
Block a user