Skip to content

Commit

Permalink
error code
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Yuan <[email protected]>
  • Loading branch information
juntao committed Jan 27, 2024
1 parent e81c8de commit afb72ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl Qdrant {
if res.status().is_success() {
let v = res.json::<Value>().await?;
let status = v.get("status").unwrap().as_str().unwrap();
if status == "completed" {
if status == "ok" {
Ok(())
} else {
Err(anyhow!("Failed to upsert points. Status = {}", status))
Expand Down

0 comments on commit afb72ae

Please sign in to comment.