Skip to content

Commit

Permalink
Defer close tailer
Browse files Browse the repository at this point in the history
  • Loading branch information
salvacorts committed Feb 20, 2024
1 parent 9e39142 commit 901d4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ingester/tailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ func (t *tailer) loop() {
}

func (t *tailer) receiveStreamsLoop() {
defer t.close()
for {
select {
case <-t.conn.Context().Done():
t.close()
return
case <-t.closeChan:
return
Expand Down

0 comments on commit 901d4d9

Please sign in to comment.