From fb333a3b1b30a67ff34fe0eba4d304889096674f Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 26 Nov 2021 00:27:43 +0100 Subject: [PATCH] Add linter structcheck (#537) --- .golangci.yml | 2 ++ server/logging/log.go | 1 - server/queue/fifo.go | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b504a4fec..8971c2976 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,7 +18,9 @@ linters: - misspell - whitespace - staticcheck + - structcheck - varcheck + run: timeout: 5m diff --git a/server/logging/log.go b/server/logging/log.go index ee7f711c4..1b15a5ff7 100644 --- a/server/logging/log.go +++ b/server/logging/log.go @@ -31,7 +31,6 @@ type stream struct { list []*Entry subs map[*subscriber]struct{} done chan struct{} - wait sync.WaitGroup } type log struct { diff --git a/server/queue/fifo.go b/server/queue/fifo.go index cc7a3e432..c080c51f2 100644 --- a/server/queue/fifo.go +++ b/server/queue/fifo.go @@ -21,7 +21,6 @@ const ( type entry struct { item *Task done chan bool - retry int error error deadline time.Time }