Skip to content

Commit

Permalink
Simplify builder usage
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee committed Jun 26, 2024
1 parent 266ad73 commit 25f9a31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/qdrant_client/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ impl Qdrant {
/// 0, // Shard ID
/// 0, // From peer ID
/// 1, // To peer ID
/// )
/// .build(),
/// ),
/// ))
/// .await?;
///# Ok(())
Expand Down
3 changes: 1 addition & 2 deletions tests/builder_coverage.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::collections::HashMap;

use qdrant_client::qdrant::update_collection_cluster_setup_request::Operation;
use qdrant_client::qdrant::{
AbortShardTransferBuilder, BinaryQuantizationBuilder, ClearPayloadPointsBuilder,
ContextInputBuilder, ContextInputPairBuilder, CountPointsBuilder, CreateAliasBuilder,
Expand Down Expand Up @@ -61,7 +60,7 @@ fn builder_coverage() {
DeleteFieldIndexCollectionBuilder::new("my_collection", " myfield").build();
UpdateCollectionClusterSetupRequestBuilder::new(
"my_collection",
Operation::MoveShard(MoveShardBuilder::new(0, 0, 0).build()),
MoveShardBuilder::new(0, 0, 0),
)
.build();
MoveShardBuilder::new(0, 0, 0).build();
Expand Down

0 comments on commit 25f9a31

Please sign in to comment.