mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-08 04:55:49 +00:00
chore: fix linux watch
This commit is contained in:
parent
35bc095760
commit
99fb6ab743
@ -5,7 +5,7 @@ use flowy_error::{ErrorCode, FlowyError, FlowyResult};
|
|||||||
use lib_infra::async_trait::async_trait;
|
use lib_infra::async_trait::async_trait;
|
||||||
|
|
||||||
use crate::entities::LackOfAIResourcePB;
|
use crate::entities::LackOfAIResourcePB;
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
use crate::local_ai::watch::{watch_offline_app, WatchContext};
|
use crate::local_ai::watch::{watch_offline_app, WatchContext};
|
||||||
use crate::notification::{
|
use crate::notification::{
|
||||||
chat_notification_builder, ChatNotification, APPFLOWY_AI_NOTIFICATION_KEY,
|
chat_notification_builder, ChatNotification, APPFLOWY_AI_NOTIFICATION_KEY,
|
||||||
@ -58,7 +58,7 @@ pub struct LocalAIResourceController {
|
|||||||
user_service: Arc<dyn AIUserService>,
|
user_service: Arc<dyn AIUserService>,
|
||||||
resource_service: Arc<dyn LLMResourceService>,
|
resource_service: Arc<dyn LLMResourceService>,
|
||||||
resource_notify: tokio::sync::broadcast::Sender<()>,
|
resource_notify: tokio::sync::broadcast::Sender<()>,
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
app_disk_watch: Option<WatchContext>,
|
app_disk_watch: Option<WatchContext>,
|
||||||
app_state_sender: tokio::sync::broadcast::Sender<WatchDiskEvent>,
|
app_state_sender: tokio::sync::broadcast::Sender<WatchDiskEvent>,
|
||||||
@ -97,7 +97,7 @@ impl LocalAIResourceController {
|
|||||||
Self {
|
Self {
|
||||||
user_service,
|
user_service,
|
||||||
resource_service: Arc::new(resource_service),
|
resource_service: Arc::new(resource_service),
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
app_disk_watch: offline_app_disk_watch,
|
app_disk_watch: offline_app_disk_watch,
|
||||||
app_state_sender,
|
app_state_sender,
|
||||||
resource_notify,
|
resource_notify,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user