Skip to content

Commit

Permalink
Merge pull request #5 from tmm1/patch-1
Browse files Browse the repository at this point in the history
Fix (*Sink).Close()
  • Loading branch information
grafov authored Nov 4, 2019
2 parents ccb6fc7 + 9ae0a30 commit 66b49ee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ func (s *Sink) Start() *Sink {

// Close closes the sink. It flushes records for the sink before closing.
func (s *Sink) Close() {
return
if atomic.LoadInt32(s.state) > sinkClosed {
atomic.StoreInt32(s.state, sinkClosed)
s.close <- struct{}{}
Expand Down

0 comments on commit 66b49ee

Please sign in to comment.