Skip to content

Commit

Permalink
FollowTail: also close errors chan
Browse files Browse the repository at this point in the history
  • Loading branch information
nexoscp committed Aug 25, 2022
1 parent 263c6a1 commit 4424ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdjournal/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (r *JournalReader) SkipN(n int) (int, error) {
// It will start from the next unread entry.
func (r *JournalReader) FollowTail(entries chan<- *JournalEntry, errors chan<- error, ctx context.Context) {
defer close(entries)

defer close(errors)
for {
select {
case <-ctx.Done():
Expand Down

0 comments on commit 4424ec3

Please sign in to comment.