Skip to content

Commit

Permalink
increase queue size
Browse files Browse the repository at this point in the history
  • Loading branch information
tiger5226 committed Oct 26, 2020
1 parent dbd19af commit 56e22f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/jobs/claimtriesync.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func SetControllingClaimForNames(claims model.ClaimSlice, atHeight uint64) error
names[claim.Name] = claim.Name
}
printDebug("ClaimTrieSync: Finished making name map...[", len(names), "]")
setControllingQueue := make(chan string, 100)
setControllingQueue := make(chan string, 1000)
initControllingWorkers(runtime.NumCPU()-1, setControllingQueue, &controlwg, atHeight)
for _, name := range names {
setControllingQueue <- name
Expand Down Expand Up @@ -211,7 +211,7 @@ func SyncClaims(claims model.ClaimSlice) error {

printDebug("ClaimTrieSync: claim update started... ")
syncwg := sync.WaitGroup{}
processingQueue := make(chan lbrycrd.Claim, 100)
processingQueue := make(chan lbrycrd.Claim, 1000)
initSyncWorkers(runtime.NumCPU()-1, processingQueue, &syncwg)
for i, claim := range claims {
if i%1000 == 0 {
Expand Down

0 comments on commit 56e22f4

Please sign in to comment.