Duplicated code removed, and lazy response evaluation (#162)
* Duplicated code removed, and lazy response evaluation * moved Tokio runtime from general dependency to dev dependency
This commit is contained in:
@@ -47,7 +47,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
|
||||
let resp: BucketExistsResponse = client.bucket_exists(&args.bucket).send().await.unwrap();
|
||||
|
||||
if !resp.exists {
|
||||
if !resp.exists() {
|
||||
client.create_bucket(&args.bucket).send().await.unwrap();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user