Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrently stat shares in OCS service #2941

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set number of workers to 1
  • Loading branch information
ishank011 committed Jun 9, 2022
commit a17ce3485af1afc1113de714b21b79c7b99aad1b
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (h *Handler) listPublicShares(r *http.Request, filters []*link.ListPublicSh
}

var wg sync.WaitGroup
workers := 50
workers := 1
input := make(chan *link.PublicShare, len(res.Share))
output := make(chan *conversions.ShareData, len(res.Share))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ func (h *Handler) listSharesWithMe(w http.ResponseWriter, r *http.Request) {
shares := make([]*conversions.ShareData, 0, len(lrsRes.GetShares()))

var wg sync.WaitGroup
workers := 50
workers := 1
input := make(chan *collaboration.ReceivedShare, len(lrsRes.GetShares()))
output := make(chan *conversions.ShareData, len(lrsRes.GetShares()))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (h *Handler) listUserShares(r *http.Request, filters []*collaboration.Filte
}

var wg sync.WaitGroup
workers := 50
workers := 1
input := make(chan *collaboration.Share, len(lsUserSharesResponse.Shares))
output := make(chan *conversions.ShareData, len(lsUserSharesResponse.Shares))

Expand Down