Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

storage: Add appender support #12

Merged
merged 11 commits into from
May 7, 2021
Merged

storage: Add appender support #12

merged 11 commits into from
May 7, 2021

Conversation

JinnyYi
Copy link
Contributor

@JinnyYi JinnyYi commented Apr 27, 2021

Add appender support in ref: beyondstorage/go-storage#529.

service.toml Outdated Show resolved Hide resolved
storage.go Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
storage.go Outdated Show resolved Hide resolved
utils.go Outdated Show resolved Hide resolved
storage.go Outdated
@@ -28,7 +100,9 @@ func (s *Storage) delete(ctx context.Context, path string, opt pairStorageDelete

_, err = s.client.DeleteV2(input)
if err != nil {
return err
if !checkError(err, files.DeleteErrorPathLookup, files.LookupErrorNotFound) {
Copy link
Contributor

@Xuanwo Xuanwo May 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer:

if err != nil && checkError(err, files.DeleteErrorPathLookup, files.LookupErrorNotFound) {
    // leave comment here, refer to AOS-46
    err = nil
}
if err != nil {
    return err
}

return nil

@Xuanwo Xuanwo changed the title Add appender support storage: Add appender support May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants