mirror of
https://github.com/modrinth/code.git
synced 2026-09-03 05:25:58 +00:00
Incremental search indexing (#6453)
* wip: initial kafka support
* wip: kafka search queue
* wip: kafka consumer
* wip: create/delete docs
* reindexing works
* reindex in more places
* also incrementally update server pings
* cleanup
* tombi
* fix ci
* update tombi
* prepare
* fix ci
* fix
* fix PLEASE
* 🙏
* add route to force reindex project
This commit is contained in:
@@ -42,6 +42,10 @@ pub async fn setup(db: &database::TemporaryDatabase) -> LabrinthConfig {
|
||||
EmailQueue::init(pool.clone(), redis_pool.clone()).unwrap();
|
||||
let gotenberg_client = GotenbergClient::from_env(redis_pool.clone())
|
||||
.expect("Failed to create Gotenberg client");
|
||||
let kafka_client = actix_web::web::Data::new(
|
||||
crate::util::kafka::KafkaClientState::new()
|
||||
.expect("Kafka connection failed"),
|
||||
);
|
||||
|
||||
crate::app_setup(
|
||||
pool.clone(),
|
||||
@@ -54,6 +58,7 @@ pub async fn setup(db: &database::TemporaryDatabase) -> LabrinthConfig {
|
||||
anrok_client,
|
||||
email_queue,
|
||||
gotenberg_client,
|
||||
kafka_client,
|
||||
false,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user