autopilot: ensure access to pendingOpens in thread-safe when logging
This commit is contained in:
parent
720a8c7e96
commit
2e2b262999
@ -321,7 +321,9 @@ func (a *Agent) controller(startingBalance btcutil.Amount) {
|
||||
}
|
||||
}
|
||||
|
||||
pendingMtx.Lock()
|
||||
log.Debugf("Pending channels: %v", spew.Sdump(pendingOpens))
|
||||
pendingMtx.Unlock()
|
||||
|
||||
// With all the updates applied, we'll obtain a set of
|
||||
// the current active channels (confirmed channels),
|
||||
|
Loading…
Reference in New Issue
Block a user