Merge pull request #3367 from cfromknecht/batched-graph-updates

Batched graph updates
This commit is contained in:
Olaoluwa Osuntokun
2020-11-25 18:40:40 -08:00
committed by GitHub
14 changed files with 547 additions and 81 deletions

View File

@@ -3,7 +3,6 @@ package routing
import (
"bytes"
"fmt"
"runtime"
"sync"
"sync/atomic"
"time"
@@ -914,7 +913,7 @@ func (r *ChannelRouter) networkHandler() {
// We'll use this validation barrier to ensure that we process all jobs
// in the proper order during parallel validation.
validationBarrier := NewValidationBarrier(runtime.NumCPU()*4, r.quit)
validationBarrier := NewValidationBarrier(1000, r.quit)
for {