merge from main branch

pull/373/head
Michael Li 1 year ago
commit 096729aa68
No known key found for this signature in database

@ -22,6 +22,10 @@ All notable changes to paopao-ce are documented in this file.
... ...
``` ```
## 0.4.2
### Fixed
- fixed remove multi-objects no effects and occurs resource leak error when use Minio as OSS(Object Storage System).[#371](https://github.com/rocboss/paopao-ce/pull/371) [#372](https://github.com/rocboss/paopao-ce/pull/372)
## 0.4.1 ## 0.4.1
### Changed ### Changed
- infinite scrolling instead of pagination for Home/User/Profile page - infinite scrolling instead of pagination for Home/User/Profile page

@ -140,6 +140,8 @@ func (s *minioServant) DeleteObjects(objectKeys []string) (err error) {
Key: objectKey, Key: objectKey,
} }
} }
// 记得一定要close否则会被卡死退出不了函数造成资源泄露
close(objectsCh)
// 宽松处理所有错误,只记录最后一次发生的错误 // 宽松处理所有错误,只记录最后一次发生的错误
for result := range resCh { for result := range resCh {

Loading…
Cancel
Save