Skip to content

Commit

Permalink
Fix for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Oct 2, 2024
1 parent b5cc888 commit 2cbacc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ test: vet
vet:
go vet ./...

.PHONY: lint
lint:
golangci-lint run

.PHONY: db
db:
psql -U postgres -h localhost -d postgres -c 'CREATE USER qgtest;'
Expand Down
4 changes: 2 additions & 2 deletions que.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ func (c *Client) LockJobContext(ctx context.Context, queue string) (*Job, error)
// eventually causing the server to run out of locks.
//
// Also swallow the possible error, exactly like in Done.
conn.Raw(func(driverConn any) error {
conn.Raw(func(driverConn any) error { //nolint:errcheck
pgxConn := driverConn.(*stdlib.Conn).Conn()
pgxConn.QueryRow(ctx, "que_unlock_job", j.ID).Scan(&ok)
pgxConn.QueryRow(ctx, "que_unlock_job", j.ID).Scan(&ok) //nolint:errcheck
return nil
})
continue
Expand Down

0 comments on commit 2cbacc2

Please sign in to comment.