mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
lint: fix linter issues
This commit is contained in:
parent
bb9124a80a
commit
a10c741a26
54 changed files with 269 additions and 468 deletions
|
|
@ -442,10 +442,7 @@ func (s *Client) Run(ctx context.Context, statusChan chan<- SwapInfo) error {
|
|||
}
|
||||
|
||||
// Start goroutine to deliver all pending swaps to the main loop.
|
||||
s.wg.Add(1)
|
||||
go func() {
|
||||
defer s.wg.Done()
|
||||
|
||||
s.wg.Go(func() {
|
||||
s.resumeSwaps(mainCtx, pendingLoopOutSwaps, pendingLoopInSwaps)
|
||||
|
||||
// Signal that new requests can be accepted. Otherwise, the new
|
||||
|
|
@ -453,7 +450,7 @@ func (s *Client) Run(ctx context.Context, statusChan chan<- SwapInfo) error {
|
|||
// this goroutine as being a swap that needs to be resumed.
|
||||
// Resulting in two goroutines executing the same swap.
|
||||
close(s.resumeReady)
|
||||
}()
|
||||
})
|
||||
|
||||
// Main event loop.
|
||||
err = s.executor.run(mainCtx, statusChan, s.abandonChans)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue