mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
rpcmiddleware: thread context through to Start
This commit is contained in:
parent
21983bab75
commit
83a3209a32
2 changed files with 3 additions and 3 deletions
|
|
@ -36,8 +36,8 @@ func NewManager(interceptTimeout time.Duration,
|
|||
}
|
||||
|
||||
// Start starts the firewall by registering the interceptors with lnd.
|
||||
func (f *Manager) Start() error {
|
||||
ctxc, cancel := context.WithCancel(context.Background())
|
||||
func (f *Manager) Start(ctx context.Context) error {
|
||||
ctxc, cancel := context.WithCancel(ctx)
|
||||
f.cancel = cancel
|
||||
|
||||
for _, i := range f.interceptors {
|
||||
|
|
|
|||
|
|
@ -1104,7 +1104,7 @@ func (g *LightningTerminal) startInternalSubServers(ctx context.Context,
|
|||
g.lndClient.Client, g.errQueue.ChanIn(), mw...,
|
||||
)
|
||||
|
||||
if err = g.middleware.Start(); err != nil {
|
||||
if err = g.middleware.Start(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
g.middlewareStarted = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue