mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
peer: only pass duration to htlcswitch.NewBatchTicker
This commit is contained in:
parent
3ed2241a94
commit
0efe5ca49d
1 changed files with 4 additions and 6 deletions
10
peer.go
10
peer.go
|
@ -542,12 +542,10 @@ func (p *peer) addLink(chanPoint *wire.OutPoint,
|
|||
*chanPoint, signals,
|
||||
)
|
||||
},
|
||||
OnChannelFailure: onChannelFailure,
|
||||
SyncStates: syncStates,
|
||||
BatchTicker: htlcswitch.NewBatchTicker(
|
||||
time.NewTicker(50 * time.Millisecond)),
|
||||
FwdPkgGCTicker: htlcswitch.NewBatchTicker(
|
||||
time.NewTicker(time.Minute)),
|
||||
OnChannelFailure: onChannelFailure,
|
||||
SyncStates: syncStates,
|
||||
BatchTicker: htlcswitch.NewBatchTicker(50 * time.Millisecond),
|
||||
FwdPkgGCTicker: htlcswitch.NewBatchTicker(time.Minute),
|
||||
BatchSize: 10,
|
||||
UnsafeReplay: cfg.UnsafeReplay,
|
||||
MinFeeUpdateTimeout: htlcswitch.DefaultMinLinkFeeUpdateTimeout,
|
||||
|
|
Loading…
Add table
Reference in a new issue