diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-07 23:30:54 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-07 23:30:54 -0700 |
| commit | 62d3d3aea040d38510ef4367e69aa5ae1b7a5b82 (patch) | |
| tree | 9b256099ce7a501d69994d6daec487e8b347cb31 /weed/s3api | |
| parent | e91b9c85a20a6322b5776d1616c457ee3d48e6a0 (diff) | |
| download | seaweedfs-62d3d3aea040d38510ef4367e69aa5ae1b7a5b82.tar.xz seaweedfs-62d3d3aea040d38510ef4367e69aa5ae1b7a5b82.zip | |
go fmt
Diffstat (limited to 'weed/s3api')
| -rw-r--r-- | weed/s3api/filer_util_tags.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/weed/s3api/filer_util_tags.go b/weed/s3api/filer_util_tags.go index 297282597..3d4da7825 100644 --- a/weed/s3api/filer_util_tags.go +++ b/weed/s3api/filer_util_tags.go @@ -6,7 +6,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" ) -const( +const ( S3TAG_PREFIX = "s3-" ) @@ -15,8 +15,8 @@ func (s3a *S3ApiServer) getTags(parentDirectoryPath string, entryName string) (t err = s3a.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error { resp, err := filer_pb.LookupEntry(client, &filer_pb.LookupDirectoryEntryRequest{ - Directory: parentDirectoryPath, - Name: entryName, + Directory: parentDirectoryPath, + Name: entryName, }) if err != nil { return err @@ -37,8 +37,8 @@ func (s3a *S3ApiServer) setTags(parentDirectoryPath string, entryName string, ta return s3a.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error { resp, err := filer_pb.LookupEntry(client, &filer_pb.LookupDirectoryEntryRequest{ - Directory: parentDirectoryPath, - Name: entryName, + Directory: parentDirectoryPath, + Name: entryName, }) if err != nil { return err @@ -73,8 +73,8 @@ func (s3a *S3ApiServer) rmTags(parentDirectoryPath string, entryName string) (er return s3a.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error { resp, err := filer_pb.LookupEntry(client, &filer_pb.LookupDirectoryEntryRequest{ - Directory: parentDirectoryPath, - Name: entryName, + Directory: parentDirectoryPath, + Name: entryName, }) if err != nil { return err |
