Update examples/crypto/main.rs

Co-authored-by: Mike Nguyen <hey@mike.ee>
Signed-off-by: Zachary K Edgell <zacharyedgell@gmail.com>
This commit is contained in:
Zachary K Edgell 2024-03-25 11:49:02 -04:00 committed by GitHub
parent b731100560
commit fb1d6b3018
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let encrypted = client
.encrypt(
ReaderStream::new("Test".as_bytes()),
EncryptRequestOptions {
dapr::client::EncryptRequestOptions {
component_name: "localstorage".to_string(),
key_name: "rsa-private-key.pem".to_string(),
key_wrap_algorithm: "RSA".to_string(),
@ -31,7 +31,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let decrypted = client
.decrypt(
encrypted,
DecryptRequestOptions {
dapr::client::DecryptRequestOptions {
component_name: "localstorage".to_string(),
key_name: "rsa-private-key.pem".to_string(),
},