Update golangci-lint and fix linting issues
Locally I have a newer version of golangci-lint and it fails with a heap of errors. Plenty of false positives, but there are some good finds there too. We should update the version we use and fix the found issues (and silence the false positives).
There is a lot of these. Many are false positives as you cannot use require
in a goroutine (see https://github.com/golang/go/issues/15758).
require-error: for error assertions use require (testifylint)
Edited by Mikhail Mazurskiy