Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bujnlc8 committed Aug 6, 2024
1 parent cf6ad03 commit 8a8e34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![qcos](https://github.com/bujnlc8/qcos/actions/workflows/qcos.yml/badge.svg?branch=master)](https://github.com/bujnlc8/qcos/actions/workflows/qcos.yml)
[![qcos](https://github.com/bujnlc8/qcos/actions/workflows/qcos.yml/badge.svg?branch=master&event=push)](https://github.com/bujnlc8/qcos/actions/workflows/qcos.yml)

**异步版本** `async`/`await`

Expand All @@ -21,7 +21,7 @@ async fn main() {
);
let mut acl_header = AclHeader::new();
acl_header.insert_object_x_cos_acl(ObjectAcl::PublicRead);
let res = client.put_object("test.png", "test.png", mime::IMAGE_PNG, Some(acl_header)).await;
let res = client.put_object("test.png", "test.png", Some(mime::IMAGE_PNG), Some(acl_header)).await;
if res.error_no == ErrNo::SUCCESS {
println!("success");
} else {
Expand Down

0 comments on commit 8a8e34f

Please sign in to comment.