mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-02 19:44:03 +02:00
multi: improve readability of goroutine defers
This commit fixes the readability of some of the defer calls in goroutines by making sure the defer stands out properly.
This commit is contained in:
@ -180,8 +180,9 @@ func (h *MiddlewareHandler) Run() error {
|
||||
// request to the client).
|
||||
h.wg.Add(1)
|
||||
go func() {
|
||||
defer h.wg.Done()
|
||||
|
||||
h.receiveResponses(errChan, responses)
|
||||
h.wg.Done()
|
||||
}()
|
||||
|
||||
return h.sendInterceptRequests(errChan, responses)
|
||||
|
Reference in New Issue
Block a user