posix: cleanup a couple comments

This commit is contained in:
Ben McClelland
2023-05-25 10:35:38 -07:00
parent 2ca274b850
commit 89d613b268

View File

@@ -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)