Can't you range over `errChan` instead of doing this loop? (And then you can get rid of `expectedResponseCount`.)