multi: move routing.TlvTrafficShaper => htlcswitch.AuxTrafficShaper
With this commit we move the traffic shaper definition from the routing package to the HTLC switch package as a preparation for being able to use it there as well. At the same time we rename it to AuxTrafficShaper to be more in line with the other auxiliary components.
This commit is contained in:
12 files changed
+167
-99
No files matched your search
@@ -30,7 +30,7 @@ func createTestPaymentLifecycle() *paymentLifecycle {
|
||||
quitChan := make(chan struct{})
|
||||
rt := &ChannelRouter{
|
||||
cfg: &Config{
|
||||
TrafficShaper: fn.Some[TlvTrafficShaper](
|
||||
TrafficShaper: fn.Some[htlcswitch.AuxTrafficShaper](
|
||||
&mockTrafficShaper{},
|
||||
),
|
||||
},
|
||||
@@ -83,7 +83,7 @@ func newTestPaymentLifecycle(t *testing.T) (*paymentLifecycle, *mockers) {
|
||||
Payer: mockPayer,
|
||||
Clock: mockClock,
|
||||
MissionControl: mockMissionControl,
|
||||
TrafficShaper: fn.Some[TlvTrafficShaper](
|
||||
TrafficShaper: fn.Some[htlcswitch.AuxTrafficShaper](
|
||||
&mockTrafficShaper{},
|
||||
),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user