Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: remove local ai watch on windows and linux (#6704)
Nathan.foooa1d0dba0a5b0
diff --git a/frontend/rust-lib/flowy-ai/Cargo.toml b/frontend/rust-lib/flowy-ai/Cargo.tomlindex 74af2731ee..a22484086a 100644--- a/frontend/rust-lib/flowy-ai/Cargo.toml+++ b/frontend/rust-lib/flowy-ai/Cargo.toml@@ -9,9 +9,9 @@ edition = "2021"flowy-derive.workspace = trueflowy-notification = { workspace = true }flowy-error = { path = "../flowy-error", features = [- "impl_from_dispatch_error",- "impl_from_collab_folder",- "impl_from_sqlite",+ "impl_from_dispatch_error",+ "impl_from_collab_folder",+ "impl_from_sqlite",] }lib-dispatch = { workspace = true }tracing.workspace = true@@ -62,4 +62,3 @@ flowy-codegen.workspace = truedart = ["flowy-codegen/dart", "flowy-notification/dart"]tauri_ts = ["flowy-codegen/ts", "flowy-notification/tauri_ts"]web_ts = ["flowy-codegen/ts", "flowy-notification/web_ts"]-diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/local_llm_resource.rs b/frontend/rust-lib/flowy-ai/src/local_ai/local_llm_resource.rsindex 88e8691a05..43406df11d 100644--- a/frontend/rust-lib/flowy-ai/src/local_ai/local_llm_resource.rs+++ b/frontend/rust-lib/flowy-ai/src/local_ai/local_llm_resource.rs@@ -16,7 +16,7 @@ use std::path::PathBuf;use std::sync::Arc;use crate::local_ai::watch::offline_app_path;-#[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]+#[cfg(target_os = "macos")]use crate::local_ai::watch::{watch_offline_app, WatchContext};use tokio::fs::{self};use tokio_util::sync::CancellationToken;@@ -70,7 +70,7 @@ pub struct LocalAIResourceController {ai_config: ArcSwapOption<LocalAIConfig>,download_task: Arc<ArcSwapOption<DownloadTask>>,resource_notify: tokio::sync::mpsc::Sender<()>,- #[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]+ #[cfg(target_os = "macos")]#[allow(dead_code)]offline_app_disk_watch: Option<WatchContext>,offline_app_state_sender: tokio::sync::broadcast::Sender<WatchDiskEvent>,@@ -84,10 +84,10 @@ impl LocalAIResourceController {) -> Self {let (offline_app_state_sender, _) = tokio::sync::broadcast::channel(1);let llm_setting = resource_service.retrieve_setting().map(Arc::new);- #[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]+ #[cfg(target_os = "macos")]let mut offline_app_disk_watch: Option<WatchContext> = None;- #[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]+ #[cfg(target_os = "macos")]{match watch_offline_app() {Ok((new_watcher, mut rx)) => {@@ -114,7 +114,7 @@ impl LocalAIResourceController {ai_config: Default::default(),download_task: Default::default(),resource_notify,- #[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]+ #[cfg(target_os = "macos")]offline_app_disk_watch,offline_app_state_sender,}diff --git a/frontend/rust-lib/flowy-core/Cargo.toml b/frontend/rust-lib/flowy-core/Cargo.tomlindex 09fd59d071..07dc153a4b 100644--- a/frontend/rust-lib/flowy-core/Cargo.toml+++ b/frontend/rust-lib/flowy-core/Cargo.toml@@ -29,8 +29,8 @@ collab-entity = { workspace = true }collab-plugins = { workspace = true }collab-folder = { workspace = true }-collab = { workspace = true }-#collab = { workspace = true, features = ["verbose_log"] }+#collab = { workspace = true }+collab = { workspace = true, features = ["verbose_log"] }diesel.workspace = trueuuid.workspace = true