Skip to content

Commit

Permalink
make chan stopRunning
Browse files Browse the repository at this point in the history
Signed-off-by: Tuan Le <mr.lequoctuan@gmail.com>
  • Loading branch information
tulequ committed Sep 22, 2020
1 parent 89c0329 commit 3fe534f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fluent/fluent.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func newWithDialer(config Config, d dialer) (f *Fluent, err error) {
Config: config,
dialer: d,
pending: make(chan *msgToSend, config.BufferLimit),
stopRunning: make(chan bool, 1),
}
f.wg.Add(1)
go f.run()
Expand Down

0 comments on commit 3fe534f

Please sign in to comment.