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:
Oliver Gugger
2022-11-21 13:07:56 +01:00
parent ad8e25cbc9
commit 55b53555e9
8 changed files with 10 additions and 1 deletions

View File

@ -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)