Skip to content

Commit 7a1ee9a

Browse files
author
Mohammod Al Amin Ashik
committed
fix: Resolve compilation errors after merge
- Fix ServerDefinition initialization with missing v2.1 fields - Add HostingType import to config.rs - Remove incorrect async/await from autostart plugin calls - Remove unused error import
1 parent 2aa376d commit 7a1ee9a

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

apps/desktop/src-tauri/src/commands/settings.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use serde::{Deserialize, Serialize};
44
use tauri::State;
55
use tauri_plugin_autostart::AutoLaunchManager;
6-
use tracing::{debug, error, info};
6+
use tracing::{debug, info};
77

88
use crate::state::AppState;
99

@@ -42,7 +42,6 @@ pub async fn get_startup_settings(
4242
// Get auto-launch status from the OS
4343
let auto_launch = manager
4444
.is_enabled()
45-
.await
4645
.map_err(|e| format!("Failed to check auto-launch status: {}", e))?;
4746

4847
// Get other settings from database
@@ -82,13 +81,11 @@ pub async fn update_startup_settings(
8281
if settings.auto_launch {
8382
manager
8483
.enable()
85-
.await
8684
.map_err(|e| format!("Failed to enable auto-launch: {}", e))?;
8785
info!("[Settings] Auto-launch enabled");
8886
} else {
8987
manager
9088
.disable()
91-
.await
9289
.map_err(|e| format!("Failed to disable auto-launch: {}", e))?;
9390
info!("[Settings] Auto-launch disabled");
9491
}

crates/mcpmux-core/src/domain/config.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::domain::server::{
2-
AuthConfig, InputDefinition, PublisherInfo, ServerDefinition, ServerSource, TransportConfig,
3-
TransportMetadata,
2+
AuthConfig, HostingType, InputDefinition, PublisherInfo, ServerDefinition, ServerSource,
3+
TransportConfig, TransportMetadata,
44
};
55
use lazy_static::lazy_static;
66
use regex::Regex;
@@ -125,6 +125,15 @@ impl UserServerEntry {
125125
space_id: space_id.to_string(),
126126
file_path,
127127
},
128+
badges: vec![],
129+
hosting_type: HostingType::default(),
130+
license: None,
131+
license_url: None,
132+
installation: None,
133+
capabilities: None,
134+
sponsored: None,
135+
media: None,
136+
changelog_url: None,
128137
}
129138
}
130139

0 commit comments

Comments
 (0)