@@ -417,7 +417,7 @@ func (m *Manager) autoloop(ctx context.Context) error {
417417 // swaps for autoloop.
418418 m .refreshAutoloopBudget (ctx )
419419
420- suggestion , err := m .SuggestSwaps (ctx , true )
420+ suggestion , err := m .SuggestSwaps (ctx )
421421 if err != nil {
422422 return err
423423 }
@@ -613,7 +613,7 @@ func (m *Manager) dispatchBestEasyAutoloopSwap(ctx context.Context) error {
613613 }
614614
615615 suggestion , err := builder .buildSwap (
616- ctx , channel .PubKeyBytes , outgoing , swapAmt , true , easyParams ,
616+ ctx , channel .PubKeyBytes , outgoing , swapAmt , easyParams ,
617617 )
618618 if err != nil {
619619 return err
@@ -697,7 +697,7 @@ func (m *Manager) singleReasonSuggestion(reason Reason) *Suggestions {
697697// suggestions are being used for our internal autolooper. This boolean is used
698698// to determine the information we add to our swap suggestion and whether we
699699// return any suggestions.
700- func (m * Manager ) SuggestSwaps (ctx context.Context , autoloop bool ) (
700+ func (m * Manager ) SuggestSwaps (ctx context.Context ) (
701701 * Suggestions , error ) {
702702
703703 m .paramsLock .Lock ()
@@ -794,7 +794,7 @@ func (m *Manager) SuggestSwaps(ctx context.Context, autoloop bool) (
794794
795795 suggestion , err := m .suggestSwap (
796796 ctx , traffic , balances , rule , outRestrictions ,
797- inRestrictions , autoloop ,
797+ inRestrictions ,
798798 )
799799 var reasonErr * reasonError
800800 if errors .As (err , & reasonErr ) {
@@ -820,7 +820,7 @@ func (m *Manager) SuggestSwaps(ctx context.Context, autoloop bool) (
820820
821821 suggestion , err := m .suggestSwap (
822822 ctx , traffic , balance , rule , outRestrictions ,
823- inRestrictions , autoloop ,
823+ inRestrictions ,
824824 )
825825
826826 var reasonErr * reasonError
@@ -922,7 +922,7 @@ func (m *Manager) SuggestSwaps(ctx context.Context, autoloop bool) (
922922// swap request for the rule provided.
923923func (m * Manager ) suggestSwap (ctx context.Context , traffic * swapTraffic ,
924924 balance * balances , rule * SwapRule , outRestrictions * Restrictions ,
925- inRestrictions * Restrictions , autoloop bool ) (swapSuggestion , error ) {
925+ inRestrictions * Restrictions ) (swapSuggestion , error ) {
926926
927927 var (
928928 builder swapBuilder
@@ -967,8 +967,7 @@ func (m *Manager) suggestSwap(ctx context.Context, traffic *swapTraffic,
967967 }
968968
969969 return builder .buildSwap (
970- ctx , balance .pubkey , balance .channels , amount , autoloop ,
971- m .params ,
970+ ctx , balance .pubkey , balance .channels , amount , m .params ,
972971 )
973972}
974973
0 commit comments