Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix name typo in oss backend #1316

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/services/oss/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ impl Accessor for OssBackend {
}

async fn delete(&self, path: &str, _: OpDelete) -> Result<RpDelete> {
let resp = self.obs_delete_object(path).await?;
let resp = self.oss_delete_object(path).await?;
let status = resp.status();
match status {
StatusCode::NO_CONTENT | StatusCode::NOT_FOUND => {
Expand Down Expand Up @@ -668,7 +668,7 @@ impl OssBackend {
self.client.send_async(req).await
}

async fn obs_delete_object(&self, path: &str) -> Result<Response<IncomingAsyncBody>> {
async fn oss_delete_object(&self, path: &str) -> Result<Response<IncomingAsyncBody>> {
let mut req = self.oss_delete_object_request(path)?;
self.signer.sign(&mut req).map_err(new_request_sign_error)?;
self.client.send_async(req).await
Expand Down