Skip to content

Commit

Permalink
chore: upgrade qdrant to 1.10.1 (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgrd authored Jul 22, 2024
1 parent 7910fc1 commit ba3f1f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion axum/qdrant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
axum = "0.7.3"
qdrant-client = "1.7.0"
qdrant-client = "1.10.1"
shuttle-axum = "0.46.0"
shuttle-qdrant = "0.46.0"
shuttle-runtime = "0.46.0"
Expand Down
6 changes: 3 additions & 3 deletions axum/qdrant/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use axum::{extract::State, routing::get, Router};
use qdrant_client::prelude::*;
use qdrant_client::Qdrant;
use std::sync::Arc;

struct AppState {
qdrant: QdrantClient,
qdrant: Qdrant,
}

async fn list_collections(State(state): State<Arc<AppState>>) -> String {
Expand All @@ -13,7 +13,7 @@ async fn list_collections(State(state): State<Arc<AppState>>) -> String {
#[shuttle_runtime::main]
async fn main(
#[shuttle_qdrant::Qdrant(cloud_url = "{secrets.CLOUD_URL}", api_key = "{secrets.API_KEY}")]
qdrant: QdrantClient,
qdrant: Qdrant,
) -> shuttle_axum::ShuttleAxum {
let state = Arc::new(AppState { qdrant });

Expand Down

0 comments on commit ba3f1f8

Please sign in to comment.