mirror of
https://github.com/flibusta-apps/meilie_updater.git
synced 2025-12-06 07:05:37 +01:00
This commit is contained in:
1647
Cargo.lock
generated
1647
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
30
Cargo.toml
30
Cargo.toml
@@ -6,18 +6,18 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tokio = { version = "1.37.0", features = ["full"] }
|
tokio = { version = "1.42.0", features = ["full"] }
|
||||||
axum = "0.7.5"
|
axum = "0.7.9"
|
||||||
sentry = { version = "0.32.3", features = ["debug-images"] }
|
sentry = { version = "0.35.0", features = ["debug-images"] }
|
||||||
tracing = "0.1.40"
|
tracing = "0.1.41"
|
||||||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"]}
|
tracing-subscriber = { version = "0.3.19", features = ["env-filter"]}
|
||||||
sentry-tracing = "0.32.3"
|
sentry-tracing = "0.35.0"
|
||||||
tower-http = { version = "0.5.2", features = ["trace"] }
|
tower-http = { version = "0.6.2", features = ["trace"] }
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.5.0"
|
||||||
log = "0.4.21"
|
log = "0.4.22"
|
||||||
env_logger = "0.11.3"
|
env_logger = "0.11.6"
|
||||||
tokio-postgres = { version = "0.7.10", features = ["with-chrono-0_4"] }
|
tokio-postgres = { version = "0.7.12", features = ["with-chrono-0_4"] }
|
||||||
deadpool-postgres = "0.13.0"
|
deadpool-postgres = "0.14.1"
|
||||||
meilisearch-sdk = "0.25.0"
|
meilisearch-sdk = "0.27.1"
|
||||||
futures = "0.3.30"
|
futures = "0.3.31"
|
||||||
serde = { version = "1.0.198", features = ["derive"] }
|
serde = { version = "1.0.216", features = ["derive"] }
|
||||||
|
|||||||
@@ -33,11 +33,12 @@ fn get_meili_client() -> Client {
|
|||||||
config::CONFIG.meili_host.clone(),
|
config::CONFIG.meili_host.clone(),
|
||||||
Some(config::CONFIG.meili_master_key.clone()),
|
Some(config::CONFIG.meili_master_key.clone()),
|
||||||
)
|
)
|
||||||
|
.unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn update_model<T>(pool: Pool) -> Result<(), Box<dyn std::error::Error + Send>>
|
async fn update_model<T>(pool: Pool) -> Result<(), Box<dyn std::error::Error + Send>>
|
||||||
where
|
where
|
||||||
T: UpdateModel + Serialize,
|
T: UpdateModel + Serialize + Send + Sync,
|
||||||
{
|
{
|
||||||
let client = pool.get().await.unwrap();
|
let client = pool.get().await.unwrap();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user