Skip to content

Commit 799c0b4

Browse files
committed
fix linter
1 parent 78d3a65 commit 799c0b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/background/worker.go

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ func (b *Worker) Close(ctx context.Context, err error) error {
7676
var resErr error
7777
b.m.WithLock(func() {
7878
if b.closed {
79+
// The error of Close is second close, close reason added for describe previous close only, for better debug
80+
//nolint:errorlint
7981
resErr = xerrors.WithStackTrace(fmt.Errorf("%w with reason: %+v", ErrAlreadyClosed, b.closeReason))
8082

8183
return

0 commit comments

Comments
 (0)