summaryrefslogtreecommitdiff
path: root/internal/media/manager.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-04-02 15:40:09 +0200
committerLibravatar GitHub <noreply@github.com>2022-04-02 15:40:09 +0200
commit03d7c75ebf1b81b12ec21f95eef1c07b265ff939 (patch)
tree511724f53946563a3b7ba1307d25f5bda98ac3a8 /internal/media/manager.go
parent[documentation] Add third-party packaging to documentation (#443) (diff)
downloadgotosocial-03d7c75ebf1b81b12ec21f95eef1c07b265ff939.tar.xz
[chore] Update Go version to 1.18 (#444)
* linting with new golangci-lint version * update go to 1.18 * bump versions in drone.yml * use new runtime/debug package for version info * remove Commit build flag from goreleaser * remove mock commit + version from build script * go fmt * add dummy version env flag to test container * install git in golang container for testing * only set versionString if Version is defined
Diffstat (limited to 'internal/media/manager.go')
-rw-r--r--internal/media/manager.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/media/manager.go b/internal/media/manager.go
index deb7e34f7..3baab6854 100644
--- a/internal/media/manager.go
+++ b/internal/media/manager.go
@@ -274,8 +274,7 @@ func (m *manager) ActiveWorkers() int {
func (m *manager) Stop() error {
logrus.Info("stopping media manager worker pool")
- stopped := m.pool.Stop()
- if !stopped {
+ if !m.pool.Stop() {
return errors.New("could not stop media manager worker pool")
}