peer+protofsm: move MsgRouter to new protofsm package

Without this, any other sub-system that wants to use the interface may run into an import cycle.
This commit is contained in:
Olaoluwa Osuntokun
2024-04-04 16:24:23 -07:00
committed by Oliver Gugger
parent b9786e1f20
commit c9d8adc83c
5 changed files with 63 additions and 17 deletions

View File

@@ -44,7 +44,7 @@ import (
"github.com/lightningnetwork/lnd/lnwallet/btcwallet"
"github.com/lightningnetwork/lnd/lnwallet/rpcwallet"
"github.com/lightningnetwork/lnd/macaroons"
"github.com/lightningnetwork/lnd/peer"
"github.com/lightningnetwork/lnd/protofsm"
"github.com/lightningnetwork/lnd/rpcperms"
"github.com/lightningnetwork/lnd/signal"
"github.com/lightningnetwork/lnd/sqldb"
@@ -161,7 +161,7 @@ type AuxComponents struct {
// MsgRouter is an optional message router that if set will be used in
// place of a new balnk default message router.
MsgRouter fn.Option[peer.MsgRouter]
MsgRouter fn.Option[protofsm.MsgRouter]
}
// DefaultWalletImpl is the default implementation of our normal, btcwallet