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:
8 files changed
+10
-1
No files matched your search
@@ -405,6 +405,7 @@ func subscribeChannelNotifications(ctxb context.Context, t *harnessTest,
|
||||
chanUpdates := make(chan *lnrpc.ChannelEventUpdate, 20)
|
||||
go func() {
|
||||
defer cancelFunc()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-quit:
|
||||
|
||||
Reference in new issue
Block a user