Skip to content

Commit a264462

Browse files
author
Kyle Kloberdanz
committed
RUST-1883 Set use_need_kms_credentials_state unconditionally when creating a new ClientState (#1018)
1 parent 5bc56ca commit a264462

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/csfle.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ impl ClientState {
9797
}
9898

9999
fn make_crypt(opts: &AutoEncryptionOptions) -> Result<Crypt> {
100-
let mut builder = Crypt::builder().kms_providers(&opts.kms_providers.credentials_doc()?)?;
100+
let mut builder = Crypt::builder()
101+
.kms_providers(&opts.kms_providers.credentials_doc()?)?
102+
.use_need_kms_credentials_state();
101103
if let Some(m) = &opts.schema_map {
102104
builder = builder.schema_map(&bson::to_document(m)?)?;
103105
}

0 commit comments

Comments
 (0)