autopilot/agent: add attachment directive goroutine to wait group
This commit is contained in:
2 files changed
+22
-3
No files matched your search
@@ -545,7 +545,10 @@ func (a *Agent) controller() {
|
||||
}
|
||||
pendingConns[nodeID] = struct{}{}
|
||||
|
||||
a.wg.Add(1)
|
||||
go func(directive AttachmentDirective) {
|
||||
defer a.wg.Done()
|
||||
|
||||
// We'll start out by attempting to connect to
|
||||
// the peer in order to begin the funding
|
||||
// workflow.
|
||||
|
||||
Reference in new issue
Block a user