Merge branch 'main' into feat/single-file-upload-limit

This commit is contained in:
Zack Fu Zi Xiang 2024-08-26 16:55:30 +08:00
commit c2e768bc30
No known key found for this signature in database
2 changed files with 5 additions and 6 deletions

View File

@ -64,7 +64,7 @@ impl IndexerProvider {
fn get_unindexed_collabs(
&self,
) -> Pin<Box<dyn Stream<Item = Result<UnindexedCollab, anyhow::Error>>>> {
) -> Pin<Box<dyn Stream<Item = Result<UnindexedCollab, anyhow::Error>> + Send>> {
let db = self.db.clone();
Box::pin(try_stream! {
let collabs = get_collabs_without_embeddings(&db).await?;

View File

@ -1,11 +1,10 @@
use anyhow::Result;
use dashmap::mapref::entry::Entry;
use dashmap::DashMap;
use std::future::Future;
use std::pin::Pin;
use std::sync::{Arc, Weak};
use std::time::Duration;
use anyhow::Result;
use dashmap::mapref::entry::Entry;
use dashmap::DashMap;
use tokio::sync::Notify;
use tokio::time::interval;
use tracing::{error, info, trace};
@ -254,7 +253,7 @@ where
}
fn spawn_handle_unindexed_collabs(indexer_provider: Arc<IndexerProvider>) {
tokio::task::spawn_local(IndexerProvider::handle_unindexed_collabs(indexer_provider));
tokio::spawn(IndexerProvider::handle_unindexed_collabs(indexer_provider));
}
fn spawn_period_check_inactive_group<S, AC>(