mirror of
https://github.com/versity/versitygw.git
synced 2026-01-04 11:03:57 +00:00
posix: cleanup a couple comments
This commit is contained in:
@@ -733,7 +733,7 @@ func (p *Posix) PutObject(po *s3.PutObjectInput) (string, error) {
|
||||
xattr.Set(name, "user."+k, []byte(v))
|
||||
}
|
||||
|
||||
// set our tag that this dir was specifically put
|
||||
// set our attribute that this dir was specifically put
|
||||
xattr.Set(name, dirObjKey, nil)
|
||||
} else {
|
||||
// object is file
|
||||
@@ -743,8 +743,6 @@ func (p *Posix) PutObject(po *s3.PutObjectInput) (string, error) {
|
||||
}
|
||||
defer f.cleanup()
|
||||
|
||||
// TODO: fallocate based on content length
|
||||
|
||||
hash := md5.New()
|
||||
rdr := io.TeeReader(po.Body, hash)
|
||||
_, err = io.Copy(f, rdr)
|
||||
|
||||
Reference in New Issue
Block a user