test-errcode
withchao 3 years ago
parent 23daab441c
commit 9b89b5c782

@ -125,6 +125,7 @@ func (c *s3Database) ApplyPut(ctx context.Context, req *third.ApplyPutReq) (*thi
Name: req.Name, Name: req.Name,
Hash: hash.Hash, Hash: hash.Hash,
ValidTime: expirationTime, ValidTime: expirationTime,
ContentType: req.ContentType,
CreateTime: time.Now(), CreateTime: time.Now(),
} }
if err := c.info.SetObject(ctx, &o); err != nil { if err := c.info.SetObject(ctx, &o); err != nil {
@ -243,6 +244,7 @@ func (c *s3Database) ConfirmPut(ctx context.Context, req *third.ConfirmPutReq) (
Name: put.Name, Name: put.Name,
Hash: hash.Hash, Hash: hash.Hash,
ValidTime: put.ValidTime, ValidTime: put.ValidTime,
ContentType: put.ContentType,
CreateTime: time.Now(), CreateTime: time.Now(),
} }
if err := c.info.SetObject(ctx, &o); err != nil { if err := c.info.SetObject(ctx, &o); err != nil {

Loading…
Cancel
Save