Skip to content

Commit

Permalink
GetPoints timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
agourlay committed Aug 8, 2024
1 parent 379252a commit 83ded03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/grpc_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ macro_rules! builder_type_conversions {
($main_type:ident,$builder_type:ident,$build_fn:ident) => {
impl From<$builder_type> for $main_type {
fn from(value: $builder_type) -> Self {
value.$build_fn().unwrap()
value.$build_fn().expect(&format!("Failed to convert {} to {}", stringify!($builder_type), stringify!($main_type)))
}
}

Expand Down
1 change: 1 addition & 0 deletions src/qdrant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3368,6 +3368,7 @@ pub struct GetPoints {
pub shard_key_selector: ::core::option::Option<ShardKeySelector>,
/// If set, overrides global timeout setting for this request. Unit is seconds.
#[prost(uint64, optional, tag = "8")]
#[builder(default, setter(strip_option), field(vis = "pub(crate)"))]
pub timeout: ::core::option::Option<u64>,
}
#[derive(derive_builder::Builder)]
Expand Down
1 change: 1 addition & 0 deletions tests/protos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ fn configure_builder(builder: Builder) -> Builder {
builder_custom_into!(read_consistency::Value, self.read_consistency),
),
("GetPoints.shard_key_selector", DEFAULT_OPTION_INTO),
("GetPoints.timeout", DEFAULT_OPTION),
// SearchBatchPoints
("SearchBatchPoints.collection_name", PUBLIC_ONLY),
("SearchBatchPoints.search_points", PUBLIC_ONLY),
Expand Down

0 comments on commit 83ded03

Please sign in to comment.