From 0efe5ca49d2008940dbafbe60aca5c58392adbc0 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 30 Jul 2018 22:28:37 -0700 Subject: [PATCH] peer: only pass duration to htlcswitch.NewBatchTicker --- peer.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/peer.go b/peer.go index 822425b39..86cfdfde1 100644 --- a/peer.go +++ b/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,