Skip to content

Commit

Permalink
error handle
Browse files Browse the repository at this point in the history
  • Loading branch information
JayT106 committed Nov 8, 2024
1 parent ba7295d commit 929710c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/env_config/src/gcloud_encrypted_seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async fn download_seed_from_gcs(bucket_name: String) -> Vec<u8> {
let client = storage_client::new(config);

// Download the file
client
let encrypted_seed = client
.download_object(
&GetObjectRequest {
bucket: bucket_name,
Expand All @@ -54,5 +54,6 @@ async fn download_seed_from_gcs(bucket_name: String) -> Vec<u8> {
&Range::default(),
)
.await
.unwrap()
.expect("Failed to download seed");
encrypted_seed
}

0 comments on commit 929710c

Please sign in to comment.