Unverified Commit d341c6ee authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Change `make_operation(..)` to be an async function (#797)

* Change `make_operation(..)` to be an async function

As part of the work towards glacier customizations, calling `make_operation(..)` needs to be able to perform asyncrhonous operations like potentially reading the body. To enable this and other future requirements, we now always generate make_operation as an async function.

* Add CR to changelog

* Fix server tests
parent f77b00ce
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
vNext (Month Day, Year)
=======================
**Breaking Changes**
- `<operation>.make_operation(&config)` is now an `async` function for all operations. Code should be updated to call `.await`. This will only impact users using the low-level API. (smithy-rs#797)

v0.27 (October 20th, 2021)
==========================
+2 −0
Original line number Diff line number Diff line
vNext (Month Day, Year)
=======================
**Breaking Changes**
- `<operation>.make_operation(&config)` is now an `async` function for all operations. Code should be updated to call `.await`. This will only impact users using the low-level API. (smithy-rs#797)

v0.0.22-alpha (October 20th, 2021)
==================================
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ impl AssumeRoleProvider {
            .build()
            .expect("operation is valid")
            .make_operation(&config)
            .await
            .expect("valid operation");
        let assume_role_creds = client_config
            .core_client
+1 −0
Original line number Diff line number Diff line
@@ -172,6 +172,7 @@ impl AssumeRoleProvider {
            .op
            .clone()
            .make_operation(&self.conf)
            .await
            .expect("valid operation");

        let assumed = self.sts.call(op).in_current_span().await;
+1 −0
Original line number Diff line number Diff line
@@ -247,6 +247,7 @@ async fn load_credentials(
        .build()
        .expect("valid operation")
        .make_operation(&conf)
        .await
        .expect("valid operation");
    let resp = client.call(operation).await.map_err(|sdk_error| {
        tracing::warn!(error = ?sdk_error, "sts returned an error assuming web identity role");
Loading