peer: only pass duration to htlcswitch.NewBatchTicker
This commit is contained in:
parent
3ed2241a94
commit
0efe5ca49d
6
peer.go
6
peer.go
@ -544,10 +544,8 @@ func (p *peer) addLink(chanPoint *wire.OutPoint,
|
|||||||
},
|
},
|
||||||
OnChannelFailure: onChannelFailure,
|
OnChannelFailure: onChannelFailure,
|
||||||
SyncStates: syncStates,
|
SyncStates: syncStates,
|
||||||
BatchTicker: htlcswitch.NewBatchTicker(
|
BatchTicker: htlcswitch.NewBatchTicker(50 * time.Millisecond),
|
||||||
time.NewTicker(50 * time.Millisecond)),
|
FwdPkgGCTicker: htlcswitch.NewBatchTicker(time.Minute),
|
||||||
FwdPkgGCTicker: htlcswitch.NewBatchTicker(
|
|
||||||
time.NewTicker(time.Minute)),
|
|
||||||
BatchSize: 10,
|
BatchSize: 10,
|
||||||
UnsafeReplay: cfg.UnsafeReplay,
|
UnsafeReplay: cfg.UnsafeReplay,
|
||||||
MinFeeUpdateTimeout: htlcswitch.DefaultMinLinkFeeUpdateTimeout,
|
MinFeeUpdateTimeout: htlcswitch.DefaultMinLinkFeeUpdateTimeout,
|
||||||
|
Loading…
Reference in New Issue
Block a user