Skip to content

Commit

Permalink
Retry and handle errors for signBlob
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Apr 4, 2024
1 parent c0b3c98 commit bf46053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions object_store/src/gcp/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ enum Error {
InvalidMultipartResponse { source: quick_xml::de::DeError },

#[snafu(display("Error signing blob: {}", source))]
SignBlobResponse { source: reqwest::Error },
SignBlobRequest { source: crate::client::retry::Error },

#[snafu(display("Got invalid signing blob repsonse: {}", source))]
InvalidSignBlobResponse { source: reqwest::Error },
Expand Down Expand Up @@ -281,9 +281,9 @@ impl GoogleCloudStorageClient {
.post(&url)
.bearer_auth(&credential.bearer)
.json(&body)
.send()
.send_retry(&self.config.retry_config)
.await
.context(SignBlobResponseSnafu)?;
.context(SignBlobRequestSnafu)?;

//If successful, the signature is returned in the signedBlob field in the response.
let response = response
Expand Down

0 comments on commit bf46053

Please sign in to comment.