Skip to content

Commit 4424ec3

Browse files
committed
FollowTail: also close errors chan
1 parent 263c6a1 commit 4424ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdjournal/read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (r *JournalReader) SkipN(n int) (int, error) {
280280
// It will start from the next unread entry.
281281
func (r *JournalReader) FollowTail(entries chan<- *JournalEntry, errors chan<- error, ctx context.Context) {
282282
defer close(entries)
283-
283+
defer close(errors)
284284
for {
285285
select {
286286
case <-ctx.Done():

0 commit comments

Comments
 (0)