mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-02 10:21:07 -06:00
Merge pull request #9647 from 2403905/issue-9642
Fixed the channel lock in a workers pool
This commit is contained in:
6
changelog/unreleased/fix-workers-lock.md
Normal file
6
changelog/unreleased/fix-workers-lock.md
Normal file
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fixed the channel lock in a workers pool
|
||||
|
||||
We fixed an error when the users can't see more than 10 shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/9647
|
||||
https://github.com/owncloud/ocis/issues/9642
|
||||
@@ -145,7 +145,6 @@ func cs3ReceivedSharesToDriveItems(ctx context.Context,
|
||||
identityCache identity.IdentityCache,
|
||||
receivedShares []*collaboration.ReceivedShare) ([]libregraph.DriveItem, error) {
|
||||
|
||||
ch := make(chan libregraph.DriveItem)
|
||||
group := new(errgroup.Group)
|
||||
// Set max concurrency
|
||||
group.SetLimit(10)
|
||||
@@ -160,6 +159,7 @@ func cs3ReceivedSharesToDriveItems(ctx context.Context,
|
||||
receivedSharesByResourceID[rIDStr] = append(receivedSharesByResourceID[rIDStr], receivedShare)
|
||||
}
|
||||
|
||||
ch := make(chan libregraph.DriveItem, len(receivedSharesByResourceID))
|
||||
for _, receivedSharesForResource := range receivedSharesByResourceID {
|
||||
receivedShares := receivedSharesForResource
|
||||
|
||||
@@ -477,7 +477,6 @@ func cs3ReceivedOCMSharesToDriveItems(ctx context.Context,
|
||||
identityCache identity.IdentityCache,
|
||||
receivedShares []*ocm.ReceivedShare) ([]libregraph.DriveItem, error) {
|
||||
|
||||
ch := make(chan libregraph.DriveItem)
|
||||
group := new(errgroup.Group)
|
||||
// Set max concurrency
|
||||
group.SetLimit(10)
|
||||
@@ -488,6 +487,7 @@ func cs3ReceivedOCMSharesToDriveItems(ctx context.Context,
|
||||
receivedSharesByResourceID[rIDStr] = append(receivedSharesByResourceID[rIDStr], receivedShare)
|
||||
}
|
||||
|
||||
ch := make(chan libregraph.DriveItem, len(receivedSharesByResourceID))
|
||||
for _, receivedSharesForResource := range receivedSharesByResourceID {
|
||||
receivedShares := receivedSharesForResource
|
||||
|
||||
|
||||
Reference in New Issue
Block a user