Skip to content

Commit db85a5b

Browse files
committed
Add comment
1 parent 1693490 commit db85a5b

File tree

1 file changed

+1
-0
lines changed
  • internal/component/common/loki/client

1 file changed

+1
-0
lines changed

internal/component/common/loki/client/shards.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ loop:
168168
}
169169
}
170170

171+
// It's safe to set batches to nil because a queue is never reused once we have closed it.
171172
q.batches = nil
172173
close(q.c)
173174
}

0 commit comments

Comments
 (0)