mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-19 19:05:15 +08:00
third
This commit is contained in:
parent
c7f7e7c782
commit
12b19bdf64
@ -29,8 +29,7 @@ func (t *thirdServer) GetUrl(ctx context.Context, req *third.GetUrlReq) (*third.
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *thirdServer) GetHashInfo(ctx context.Context, req *third.GetHashInfoReq) (*third.GetHashInfoResp, error) {
|
func (t *thirdServer) GetHashInfo(ctx context.Context, req *third.GetHashInfoReq) (*third.GetHashInfoResp, error) {
|
||||||
|
return t.s3dataBase.GetHashInfo(ctx, req)
|
||||||
return nil, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *thirdServer) CleanObject(ctx context.Context, now time.Time) {
|
func (t *thirdServer) CleanObject(ctx context.Context, now time.Time) {
|
||||||
|
@ -463,6 +463,9 @@ func (c *s3Database) clearNoCitation(ctx context.Context, engine string, limit i
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *s3Database) GetHashInfo(ctx context.Context, req *third.GetHashInfoReq) (*third.GetHashInfoResp, error) {
|
func (c *s3Database) GetHashInfo(ctx context.Context, req *third.GetHashInfoReq) (*third.GetHashInfoResp, error) {
|
||||||
|
if err := c.CheckHash(req.Hash); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
o, err := c.hash.Take(ctx, req.Hash, c.obj.Name())
|
o, err := c.hash.Take(ctx, req.Hash, c.obj.Name())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user