|
|
@@ -114,7 +114,7 @@ func (svc *ObjectService) DownloadObject(userID int64, objectID int64) (io.ReadC |
|
|
// TODO 需要返回Object信息 |
|
|
// TODO 需要返回Object信息 |
|
|
return myio.AfterReadClosed(reader, func(closer io.ReadCloser) { |
|
|
return myio.AfterReadClosed(reader, func(closer io.ReadCloser) { |
|
|
// TODO 可以考虑在打开了读取流之后就解锁,而不是要等外部读取完毕 |
|
|
// TODO 可以考虑在打开了读取流之后就解锁,而不是要等外部读取完毕 |
|
|
mutex.Unlock() |
|
|
|
|
|
|
|
|
//mutex.Unlock() |
|
|
}), nil |
|
|
}), nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|