mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
routing/router: increase validation barrier size to 1000
This allows for a 1000 different persistent operations to proceed concurrently. Now that we are batching operations at the db level, the average number of outstanding requests will be higher since the commit latency has increased. To compensate, we allow for more outstanding requests to keep the router busy while batches are constructed.
This commit is contained in:
parent
f8154c65c5
commit
e8c545e909
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ package routing
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
@ -914,7 +913,7 @@ func (r *ChannelRouter) networkHandler() {
|
||||||
|
|
||||||
// We'll use this validation barrier to ensure that we process all jobs
|
// We'll use this validation barrier to ensure that we process all jobs
|
||||||
// in the proper order during parallel validation.
|
// in the proper order during parallel validation.
|
||||||
validationBarrier := NewValidationBarrier(runtime.NumCPU()*4, r.quit)
|
validationBarrier := NewValidationBarrier(1000, r.quit)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue